Skip to content

Bug 29764 groupby loses index name sometimes #36121

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 3 commits into from
Sep 5, 2020
Merged

Conversation

phofl
Copy link
Member

@phofl phofl commented Sep 4, 2020

Issue was fixed for sum and any with c9144ca.

So the only thing left was to add the index name in _wrap_transformed_output. I kept the tests from #33111, to show, that alle cases are now handled correctly.

I hope it is okay, to add a new PR for this?

@jreback jreback added the Groupby label Sep 5, 2020
@jreback jreback added this to the 1.2 milestone Sep 5, 2020
@jreback jreback added the Bug label Sep 5, 2020
@jreback jreback merged commit c40bf02 into pandas-dev:master Sep 5, 2020
@jreback
Copy link
Contributor

jreback commented Sep 5, 2020

thanks @phofl very nice

@phofl phofl deleted the 29764 branch September 5, 2020 19:04
jbrockmendel pushed a commit to jbrockmendel/pandas that referenced this pull request Sep 8, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GroupBy Doesn't Always Maintain Column Index Name
2 participants