-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Exception raised with empty dataframe in v6.0.0rc0 #4919
Comments
Thanks @KoolADE85 for reporting, and for trying out the prerelease! I've tried this out but can't reproduce the error: Any chance you could share some more details please? Could you show the output of
please? |
My apologies on the poor example code... must have been my EOD Friday brain 😅 Here is code that DOES reproduce the error in a notebook. It's worth noting that the error occurs when
And here is the same code as a Dash app, where the graph would be JSON-encoded rather than output directly. Here, the graph displays until you select
|
Output from
|
Our App Studio test suite caught an issue with this code in the latest RC of plotly.py:
In v5.24.1, this produces an empty graph as expected
In v6.0.0rc0, this raises an Exception:
ValueError: zero-size array to reduction operation maximum which has no identity
This is a simple case, but a more realistic use case would be when a dataframe is filtered down to nothing due to user input.
The text was updated successfully, but these errors were encountered: