You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plotly express not compatible with pandas NAType/pandas.NA/pd.NA values #3253
Plotly express functions fall over when given dataframes containing pd.NA values. I think these should have the same behaviour as None values.
Example:
# This works
px.scatter(pd.DataFrame([1, 2, 3, None, 5]))
# This results in "TypeError: Object of type NAType is not JSON serializable"
px.scatter(pd.DataFrame([1, 2, 3, None, 5]).convert_dtypes())
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson
Activity
nicolaskruchten commentedon Jun 18, 2021
Thanks for pointing that out! We'll try to get it fixed soon :)
nicolaskruchten commentedon Jun 18, 2021
Note to self: will need to look at
plotly.py/packages/python/plotly/_plotly_utils/utils.py
Lines 168 to 178 in b34bd6d
plotly.py/packages/python/plotly/plotly/io/_json.py
Lines 507 to 526 in b34bd6d
astafan8 commentedon Aug 5, 2021
This simple addition worked for me when i used
px.timeline#3336. Note that I'm a plotly newbie.stolen from https://github.com/GoogleCloudPlatform/covid-19-open-data/pull/265/files :)
avm19 commentedon Jan 17, 2024
#3705 partially fixed this issue. The issue is fixed when Python's
jsonis used, but the problem persists fororjson.Coding-with-Adam commentedon Jan 18, 2024
thank you for taking a look at this @avm19 .
gvwilson commentedon Jul 11, 2024
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson