Hi,
I have checked it with some GOOGL WIKI DATA SET from quandl.Run the following code...
I have checked it with some GOOGL WIKI DATA SET from quandl.Run the following code...
import pandas as pd df = pd.read_csv("C:\\Users\\Manas\\Desktop\\Misc\\WIKI-PRICES.csv") #.....(of course you have to change the path of your data set) print(df.head()) df = df[['adj_open','adj_high','adj_low','adj_close','adj_volume']] #.....(Replace with your own features...Adj. Open etc) df['HL_PCT'] = (df['adj_high'] - df['adj_low'])/df['adj_close']*100 df['PCT_change'] = (df['adj_close'] - df['adj_open']) / df['adj_open'] * 100.0 df = df[['adj_close', 'HL_PCT', 'PCT_change', 'adj_volume']] print(df.head())