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:
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.
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:
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.
I have a small example, I saved my dataframe data using pickle and then read it back into a dataframe, the graph example code is only a few lines long.
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:
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
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Hi, I was able to get something plotted with a little bit of work. The thing that I’d need to look into is the scale, because I had to zoom the axes manually to get the attached view.
The only thing I changed about what you were doing was that I changed the histogram line to:
A histogram simply bins a variable and applies a summary statistic to each bin. I need to add other stat types, but currently that is a count. So, this is what you get for the data below. I’d consider other plotting options, including something that would plot the data across a continuous time axis.
Btw, this is also another option for how you could use the histogram chart:
On Wednesday, October 14, 2015 at 3:45:43 PM UTC-5, [email protected] wrote:
I have a small example, I saved my dataframe data using pickle and then read it back into a dataframe, the graph example code is only a few lines long.
-g
On Saturday, October 3, 2015 at 1:37:41 PM UTC-5, Bryan Van de ven wrote:
I’m not sure offhand, without being able to run code to investigate. Can you provide a complete minimal example that reproduces the problem?
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:
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
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, [email protected] wrote:
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:
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.
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, [email protected] wrote:
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:
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.
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, gary.u...@gmail.com wrote:
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:
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.
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, [email protected] wrote:
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:
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
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, [email protected] wrote:
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:
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
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, [email protected] wrote:
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:
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
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
So, I created a new virtual env exactly like yours. I am now getting a graph but nothing is displayed on it. I now have the 0.10.1 version of bokeh, python 3.5. It seems like I address one issue and another pops right up to take its place.
···
On Thursday, October 15, 2015 at 11:36:55 AM UTC-5, [email protected] wrote:
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, [email protected] wrote:
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:
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
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
I think the issue is that my xaxis is displaying such a wide range of times that all of my data is scrunched down to one very narrow line. I can’t even see it unless I expand the graph and even then it is just a razor thin line.
I need to figure out how to set the min/max on the xaxis I guess…
···
On Thursday, October 15, 2015 at 12:31:37 PM UTC-5, [email protected] wrote:
So, I created a new virtual env exactly like yours. I am now getting a graph but nothing is displayed on it. I now have the 0.10.1 version of bokeh, python 3.5. It seems like I address one issue and another pops right up to take its place.
On Thursday, October 15, 2015 at 11:36:55 AM UTC-5, [email protected] wrote:
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, [email protected] wrote:
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:
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
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Yeah sorry, that was some of my comments in my first response. I need to see why the bounds are set correctly, but for now you can manually zoom each axis manually by hovering over each and scrolling to get what I showed you.
The object you get back is a subclass of Plot, so everything is there for manual manipulation as needed.
···
On Thursday, October 15, 2015 at 2:20:03 PM UTC-5, [email protected] wrote:
I think the issue is that my xaxis is displaying such a wide range of times that all of my data is scrunched down to one very narrow line. I can’t even see it unless I expand the graph and even then it is just a razor thin line.
I need to figure out how to set the min/max on the xaxis I guess…
On Thursday, October 15, 2015 at 12:31:37 PM UTC-5, [email protected] wrote:
So, I created a new virtual env exactly like yours. I am now getting a graph but nothing is displayed on it. I now have the 0.10.1 version of bokeh, python 3.5. It seems like I address one issue and another pops right up to take its place.
On Thursday, October 15, 2015 at 11:36:55 AM UTC-5, [email protected] wrote:
On Friday, October 2, 2015 at 7:20:09 AM UTC-5, [email protected] wrote:
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:
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
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].