I want to prepare a bokeh plot that uses a ColumnDataSource
. The pandas
DataFrame
that is the source of the data has one column and a datetime
index:
How do I specify that the x value should be the index. I tried just omitting it, hoping that would be the default, but it did not work:
There is an ugly solution where I just copy the index as a column in the dataframe, but I hope there is a more elegant solution: