Skip to content

FYI, Pandas 2.2.2 has bug that affects data visualization episode #138

Closed
@jlchang

Description

@jlchang

What is the problem?

FYI, Pandas 2.2.2 seems to have a plotting bug for the plots in plotting with pandas , running albany['circulation'].plot() renders:
Screenshot 2024-10-04 at 5 12 09 AM
instead of:
Screenshot 2024-10-04 at 5 14 11 AM
Pandas 2.0.3 generates the expected plot (Pandas 2.2.3 is also problematic). I filed an issue in the Pandas repo, the bug is confirmed and a workaround was provided.

The pandas team is aware so I expect this to be a transient issue but, in the interim, instructors should either avoid pandas 2.2.2/3 or prepend .plot() with .sort_index().

Location of problem (optional)

episodes/data-visualisation.md

Metadata

Metadata

Assignees

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