Skip to content

Plotly.express not working with Pandas Dataframe #4179

Closed
@JS-Aibel

Description

@JS-Aibel

The example below results in an error message saying “AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'?”. The plotly example is taken from https://plotly.com/python/radar-chart/.
Running Plotly Version: 5.14.1 and Pandas Version: 2.0.1.

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()

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