10 min to pandas: Plotting: NameError - name 'plt' not defined
10 min to pandas, p to Plotting and got the below

In [187]: df = pd.DataFrame(np.random.randn(1000, 4), index=ts.index, columns=['A', 'B', 'C', 'D'])

In [188]: df = df.cumsum()

In [189]: plt.figure(); df.plot(); plt.legend(loc='best')---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-189-7376f1bcd0b9> in <module>()
----> 1 plt.figure(); df.plot(); plt.legend(loc='best')

NameError: name 'plt' is not defined

In [190]: 
