Using months in x axis in bokeh
<p>Lets say I have the following data:</p>

<pre><code>import random
import pandas as pd
numbers = random.sample(range(1,50), 12)
d = {'month': range(1,13),'values':numbers}
df = pd.DataFrame(d)
</code></pre>

<p>I am using bokeh to visualize the results:</p>

<pre><code> p = figure(plot_width=400, plot_height=400)
 p.line(df['month'], df['values'], line_width=2)
 output_file('test.html')
 show(p)
</code></pre>

<p><a href="https://i.stack.imgur.com/w4Tee.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w4Tee.png" alt="enter image description here"></a></p>

<p>The results are ok. What I want is the x axis to represent a month(1:January,2:February..). I am doing the following to convert the numbers to months:</p>

<pre><code>import datetime
df['month'] = [datetime.date(1900, x, 1).strftime('%B') for x in df['month']]
p = figure(plot_width=400, plot_height=400)
p.line(df['month'], df['values'], line_width=2)
show(p)
</code></pre>

<p>The results is an empty figure. The following is also not working:</p>

<pre><code>p.xaxis.formatter = DatetimeTickFormatter(format="%B")
</code></pre>

<p>Any idea how to overpass it?</p>