pandas manual code example
Example: pandas
df = pd.DataFrame(np.random.randn(1000, 4), index=ts.index, .....: columns=['A', 'B', 'C', 'D']) .....: In [137]: df = df.cumsum() In [138]: plt.figure() Out[138]:
In [139]: df.plot() Out[139]:
In [140]: plt.legend(loc='best') Out[140]: