Skip to content

fix for DataFrameGroupBy.value_counts #1257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025
Merged

Conversation

Dr-Irv
Copy link
Collaborator

@Dr-Irv Dr-Irv commented Jun 19, 2025

Discovered that DataFrameGroupBy.value_counts() was not matching when you ask for a subset of the columns.

Due to __getitem__() having bool instead of the passed in value whether an index is included.

@loicdiridollou since you worked on this, can you review and approve, and then I will merge

@Dr-Irv Dr-Irv requested a review from loicdiridollou June 19, 2025 14:24
Copy link
Member

@loicdiridollou loicdiridollou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks @Dr-Irv

@Dr-Irv Dr-Irv merged commit 5532e9e into pandas-dev:main Jun 19, 2025
13 checks passed
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.

2 participants