# Cannot plot matplotlib getItem

**URL:** <https://discourse.jupyter.org/t/cannot-plot-matplotlib-getitem/15556>\
**Category:** Notebook\
**Created:** [August 30, 2022, 12:18am UTC](https://discourse.jupyter.org/t/cannot-plot-matplotlib-getitem/15556 "2022-08-30T00:18:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quique](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/quique/32/2004_2.png) [@quique](https://discourse.jupyter.org/u/quique)\
**Post date:** [August 30, 2022, 12:18am UTC](https://discourse.jupyter.org/t/cannot-plot-matplotlib-getitem/15556/1 "2022-08-30T00:18:12Z")

</div>

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** ’
