Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG running example #2

Open
rsadr opened this issue Apr 5, 2020 · 2 comments
Open

BUG running example #2

rsadr opened this issue Apr 5, 2020 · 2 comments

Comments

@rsadr
Copy link

rsadr commented Apr 5, 2020

Cannot run example: comes back with error message below. Something wrong with compatibility with Pandas.

File "pandas/_libs/tslib.pyx", line 481, in pandas._libs.tslib.array_to_datetime

File "pandas/_libs/tslib.pyx", line 559, in pandas._libs.tslib.array_to_datetime

ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True

@mbilyanov
Copy link

Same here.

@mbilyanov
Copy link

Fix for the timedate issue:
i: date.strftime(xaxis_dt_format) for i, date in enumerate(pd.to_datetime(df["Date"], utc=True))

There are other issues as well, to fix the callback linking, use this:
fig.x_range.js_on_change('start', callback)

@ndepaola Did you mean to target the start event for the x_range attribute? Not sure, but at least after these changes the example now is running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants