To run the code below:
SHIFT+ENTER
on your keyboard or press the play button () in the toolbar above.A full tutorial for using the notebook interface is available here.
In [1]:
%matplotlib notebook
import pandas as pd
import numpy as np
import matplotlib
from matplotlib import pyplot as plt
import seaborn as sns
ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
df = pd.DataFrame(np.random.randn(1000, 4), index=ts.index,
columns=['A', 'B', 'C', 'D'])
df = df.cumsum()
df.plot(); plt.legend(loc='best')
Out[1]:
Feel free to open new cells using the plus button (), or hitting shift-enter while this cell is selected.
Note: Original source of this notebook is at tmpnb.jupyter.org