Skip to content

Fix radar_plot with pandas 3 - #855

Closed
davrens101 wants to merge 1 commit into
huggingface:mainfrom
davrens101:fix-radar-plot-pandas3
Closed

davrens101 wants to merge 1 commit into
huggingface:mainfrom
davrens101:fix-radar-plot-pandas3

Conversation

@davrens101

Copy link
Copy Markdown

Fixes #854

radar_plot looped over zip(data.index), so g was a 1-tuple and data.loc[g] is treated as a multi-axis key by pandas 3 (ValueError: zip() argument 2 is longer than argument 1). The legend label was also the tuple. Iterating data.index directly fixes both.

Before (pandas 3.0.6): pytest tests/test_viz.py -> 1 failed. After: 2 passed (existing test_output_is_plot covers this).

AI-assisted; I reviewed the diff and ran the test.

Signed-off-by: davrens101 <davis@example.com>
@davrens101

Copy link
Copy Markdown
Author

Closing to tidy up my open PRs. Happy to reopen if this is still useful.

@davrens101 davrens101 closed this Dec 4, 2026
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

Successfully merging this pull request may close these issues.

radar_plot fails on pandas 3 (data.loc with 1-tuple key)

1 participant