In [1]:
import pandas as pd
import bokeh.plotting as bp
bp.output_notebook()
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]:
In [4]:
bp.line(x=years,
y=ps,
x_axis_type = 'datetime')
bp.show()
In [4]: