Skip to content

pandas/missing-plotly

Pack Severity Fix Versions
pandas warning none, edit by hand All versions

The project has matplotlib and no plotly, so df.plot draws static matplotlib charts that xpd's plotly rules cannot check. Add plotly to the project and set it as the pandas plotting backend.

Terminal window
uv add plotly

Add the package to the project environment, not to xpd itself.

Without plotly, df.plot returns a static matplotlib Axes. With plotly as the plotting backend, df.plot.bar(x="team", y="score") returned the same figure as px.bar(df, x="team", y="score"), which xpd checks with its plotly rules.

The warning appears when plotly is not installed and the project uses matplotlib or seaborn.

The project has matplotlib and no plotly, so df.plot returns a static matplotlib Axes. With plotly installed and pd.options.plotting.backend = "plotly", df.plot.bar(x="team", y="score") returned the same figure as px.bar(df, x="team", y="score"), which xpd checks with its plotly rules. Add plotly to the project.

See all rules in the pandas pack.