Skip to content

in groupby sorting index when length of groupings is one #27386

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

Closed
wants to merge 1 commit into from

Conversation

camilaagw
Copy link

Reference Issues/PRs

Example: Fixes #27369 "Bug: groupby(..., observed=True) doesn't respect sort keys"

What does this implement/fix? Explain your changes.

Sorts the index when the length of groupings is one (if sefl.sorted equals True)

@WillAyd
Copy link
Member

WillAyd commented Jul 15, 2019

Can you add a test for the behavior you are fixing?

@WillAyd WillAyd added Categorical Categorical Data Type Groupby labels Jul 15, 2019
@WillAyd
Copy link
Member

WillAyd commented Aug 26, 2019

@camilaagw can you add a test and merge master?

@WillAyd
Copy link
Member

WillAyd commented Sep 13, 2019

I think this is stale but @camilaagw feel free to ping if you'd like to pick back up

@WillAyd WillAyd closed this Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: groupby(..., observed=True) doesn't respect sort key
3 participants