I am using Python 3.3 (anaconda) and bokeh 1.0
I am trying to create a histogram that shows the number of failures over time. The granularity is per second and I am having no luck getting it to work. I have create a DataFrame that contains the time of the failure, as well as the schema (and other items). The DataFrame is created from a list of dictionary items, which contains schema as a string and time as a float. The dataframe looks correct when I view the contents, however everytime I try to create the histogram it fails. This is the line that creates the histogram:
hist = Histogram(df, 100, ‘time’, xscale=‘datetime’, color=‘schema’, title=“fails”)
The error I am getting is:
File “/Users/g/anaconda/envs/py3k/lib/python3.3/site-packages/bokeh/properties.py”, line 485, in validate
(nice_join([ cls.name for cls in self._underlying_type ]), value, type(value).name))
ValueError: expected a value of type float, int8, int16, int32, int64 or int, got time of type str
I have tried leaving the field as a datetime object and now converted into a float (UTC time). I am missing something but I have no idea what it is, any help would be appreciated.
Thanks
-g




