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

Making Radar Charts: make_trace_kwargs uses df.append which has been deprecated in pandas 2.0 #4582

Open
RoshnikRahat opened this issue Apr 19, 2024 · 1 comment

Comments

@RoshnikRahat
Copy link

Hello,

While making a radar chart using code from the pIotly documentation

Relevant Code:
fig = px.line_polar(df, r='max-age', theta='category', line_close=True)
fig.update_traces(fill='toself')

I got the error:
AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'?

which came from the \plotly\express_core.py and the make_trace_kwargs() function, corresponding to line:

trace_data = trace_data.append(trace_data.iloc[0])

@Coding-with-Adam
Copy link
Contributor

Hi @RoshnikRahat
Could you please share the full reproducible code with us?

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