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

Radar plots: Broken documentation for generating example #4259

Closed
vprusso opened this issue Jun 22, 2023 · 2 comments
Closed

Radar plots: Broken documentation for generating example #4259

vprusso opened this issue Jun 22, 2023 · 2 comments

Comments

@vprusso
Copy link

vprusso commented Jun 22, 2023

The following example in the "Radar chart" documentation page:

import plotly.express as px
import pandas as pd
df = pd.DataFrame(dict(
    r=[1, 5, 2, 2, 3],
    theta=['processing cost','mechanical properties','chemical stability',
           'thermal stability', 'device integration']))
fig = px.line_polar(df, r='r', theta='theta', line_close=True)
fig.show()

yields the following error:

AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'?

The reason for this issue is most likely due to the plotly.express component not abiding by the migration guidelines.

@alexcjohnson
Copy link
Collaborator

Do you have the latest release, v5.15? This was fixed in #4190

@vprusso
Copy link
Author

vprusso commented Jun 22, 2023

That was it! I was on 5.14.1. Thank you for the quick response, @alexcjohnson !

Closing.

@vprusso vprusso closed this as completed Jun 22, 2023
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