-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: DataFrameGroupBy.value_counts() fails if as_index=False and there are duplicate column labels #45160
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
jreback
merged 26 commits into
pandas-dev:main
from
johnzangwill:value_counts-with-duplicate-labels
Jan 17, 2022
Merged
BUG: DataFrameGroupBy.value_counts() fails if as_index=False and there are duplicate column labels #45160
Changes from 4 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
696130b
Update test_frame_value_counts.py
johnzangwill 6b03989
Implement value_counts with duplicates and add test
johnzangwill db2f38a
Merge branch 'pandas-dev:master' into value_counts-with-duplicate-labels
johnzangwill 9093374
redo using private methods
johnzangwill 4f65829
Update test_frame_value_counts.py
johnzangwill 85cf095
Merge branch 'pandas-dev:master' into value_counts-with-duplicate-labels
johnzangwill 68ae88b
Merge branch 'pandas-dev:master' into value_counts-with-duplicate-labels
johnzangwill faa17e5
Revert "redo using private methods"
johnzangwill 44ff075
Merge branch 'value_counts-with-duplicate-labels' of https://github.c…
johnzangwill c097e5d
Update generic.py
johnzangwill 7532cc0
Merge branch 'pandas-dev:master' into value_counts-with-duplicate-labels
johnzangwill d490187
Update generic.py
johnzangwill 837c850
Merge branch 'value_counts-with-duplicate-labels' of https://github.c…
johnzangwill 89c90c4
Update generic.py
johnzangwill 92999fb
Update generic.py
johnzangwill 6e55670
Back to reset_index
johnzangwill a47bbf7
Merge branch 'pandas-dev:master' into value_counts-with-duplicate-labels
johnzangwill ad164dc
Merge branch 'pandas-dev:master' into value_counts-with-duplicate-labels
johnzangwill 0f4b155
Merge branch 'pandas-dev:master' into value_counts-with-duplicate-labels
johnzangwill f6be00d
Merge branch 'pandas-dev:master' into value_counts-with-duplicate-labels
johnzangwill 0b4853c
Merge branch 'main' into value_counts-with-duplicate-labels
johnzangwill fece32b
Update generic.py
johnzangwill df127ef
Merge branch 'pandas-dev:main' into value_counts-with-duplicate-labels
johnzangwill 36f2b0d
Trigger CI
johnzangwill 207b55e
Merge branch 'value_counts-with-duplicate-labels' of https://github.c…
johnzangwill e3b245c
Merge branch 'pandas-dev:main' into value_counts-with-duplicate-labels
johnzangwill File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do
result_frame = result
and then do the__finalize__
after the if/then (e.g. share it between these)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done