0down votefavorite
I have a value for each point in time (updated each half an hour).
I read the data from csv into a pandas dataframe :
import pandas as pd
headers = ['timestamp', 'pressure']
df = pd.read_csv('data.csv', header=None, names=headers)
The data types are:
timestamp object
pressure int64
The df itself looks like this:
timestamp pressure
0 2016-01-29 10:00:00 3
1 2016-01-30 22:30:00 2
2 2016-01-31 04:30:00 1
I visualize it like following:
fig = TimeSeries(df, x = 'timestamp', y = 'pressure',builder_type='point'
,xscale="datetime")
And what it returns is:
However, if i remove the time part - it will work fine:
What am i doing wrong?
Bryan
January 31, 2016, 3:40pm
2
This seems possibly like a bug. It's possible that the "object" type is problematic. In any case it needs to be investigated and explained, can you file a GitHub issue with this information?
Thanks,
Bryan
ยทยทยท
On Jan 31, 2016, at 5:24 AM, [email protected] wrote:
0
down vote
favorite
I have a value for each point in time (updated each half an hour).
I read the data from csv into a pandas dataframe :
import pandas as
pd
headers
= ['timestamp', 'pressure']
df
= pd.read_csv('data.csv', header=None, names=headers)
The data types are:
timestamp object
pressure int64
The df itself looks like this:
timestamp pressure
0 2016-01-29 10:00:00 3
1 2016-01-30 22:30:00 2
2 2016-01-31 04:30:00 1
I visualize it like following:
fig = TimeSeries(df, x = 'timestamp', y = 'pressure',builder_type='point'
,xscale="datetime")
And what it returns is:
However, if i remove the time part - it will work fine:
What am i doing wrong?
--
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] .
To post to this group, send email to [email protected] .
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9452dba9-7096-4bd9-bc5e-416feff04c2f%40continuum.io\ .
For more options, visit https://groups.google.com/a/continuum.io/d/optout\ .