We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Upgrading to plotly 6.0.1 from 5.24.1, seeing the behavior difference below
plotly 6.0.1
5.24.1
import pandas as pd import plotly import plotly.express as px import json df = pd.DataFrame({"date": ["Apr 2023", "Sep 2023", "Jan 2023", "Dec 2023", "Apr 2023", "Jul 2023", "Jan 2023", "Oct 2023"], "value": [4, 9, 1, 12, 4, 7, 1, 10], "group": ["A", "A", "A", "A", "B", "B", "B", "B"]}) df_grouped = df.groupby(["group", "date"])["value"].sum().reset_index() fig = px.line(df_grouped, x="date", y="value", color="group") json.dumps(fig, cls=plotly.utils.PlotlyJSONEncoder) > '{"data":... "xaxis": "x", "y": {"dtype": "i1", "bdata": "BAwBCQ=="}, "yaxis": "y", "type": "scatter" ...} fig.to_json() > '{"data":...,"xaxis":"x","y":{"dtype":"i1","bdata":"BAwBCQ==" ...}
In 5.24.1
json.dumps(fig, cls=plotly.utils.PlotlyJSONEncoder) > {"data": ..., "xaxis": "x", "y": [4, 12, 1, 9], ...} fig.to_json() > '{"data":...,"xaxis":"x","y":[4,12,1,9], ...}
Note that fig.data[0].y is serialized into {"dtype": "i1", "bdata": "BAwBCQ=="} rather than a list. Is that expected behavior with the new version?
fig.data[0].y
{"dtype": "i1", "bdata": "BAwBCQ=="}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Upgrading to
plotly 6.0.1
from5.24.1
, seeing the behavior difference belowIn
5.24.1
Note that
fig.data[0].y
is serialized into{"dtype": "i1", "bdata": "BAwBCQ=="}
rather than a list. Is that expected behavior with the new version?The text was updated successfully, but these errors were encountered: