When I try to plot this df
import pandas as pd
from pandas import Series
from matplotlib import pyplot
df=pd.read_excel(‘DataLSTMReady.xlsx’)
df=df.set_index(‘Date’, inplace=True, drop=False)
df[[‘Date’,‘107057’]].plot()
pyplot.show()
I get this error:
TypeError Traceback (most recent call last)
in ()
14 #df.head()
15
—> 16 df[[‘Date’,‘107057’]].plot()
17 plt.show()TypeError: ‘NoneType’ object has no attribute ‘getitem’