Some examples of pandas-based plots rendered by Bokeh


In [1]:
import numpy as np
import pandas as pd
from bokeh import mpl
from bokeh.plotting import show

In [2]:
ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
p = ts.plot()

show(mpl.to_bokeh(notebook=True))


BokehJS successfully loaded.

In [3]:
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=list('ABCD'))
df = df.cumsum()
df.plot(legend=False)

show(mpl.to_bokeh(notebook=True))


BokehJS successfully loaded.

Warning: BokehJS previously loaded


In [ ]: