Skip to content

Radar plots: Broken documentation for generating example #4259

Closed

Description

@vprusso

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.

Activity

  1. alexcjohnson commented on Jun 22, 2023

    @alexcjohnson
    Collaborator

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

  2. vprusso commented on Jun 22, 2023

    @vprusso
    Author

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

    Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions