In [1]:
import pandas as pd
import bokeh.plotting as bp
bp.output_notebook()


Bokeh Plot

Configuring embedded BokehJS mode.


In [2]:
ps = pd.Series(data=0, index=pd.date_range(start='Jan 1 2012', 
                                           end='Dec 31 2012',
                                           freq='M'))

In [3]:
years = pd.Series(ps.index)
years


Out[3]:
0    2012-01-31
1    2012-02-29
2    2012-03-31
3    2012-04-30
4    2012-05-31
5    2012-06-30
6    2012-07-31
7    2012-08-31
8    2012-09-30
9    2012-10-31
10   2012-11-30
11   2012-12-31
dtype: datetime64[ns]

In [4]:
bp.line(x=years,
        y=ps,
        x_axis_type = 'datetime')
bp.show()


Bokeh Plot
Plots

In [4]: