I have a dataset like this:
stock_symbol stock_date stock_price_open stock_price_high
QRR 8/2/10 2.37 2.42 2.29
QTM 5/2/10 2.38 2.5 2.34
QXM 4/2/10 2.57 2.64 2.39
I read a NYSE dataset:
df = pandas.read_csv('NYSE.csv', index_col = 0, parse_dates=True)
When I ran:
df[['QRR','QTM','QXM']]
I got this error:
KeyError: "['QRR' 'QTM' 'QXM'] not in index"
'QRR', 'QTM', 'QXM' are values of stock_symbol column. Could anyone please show me how to index them?