Skip to content
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

BUG: Groupby head/tail with axis=1 fails #37778

Merged
merged 1 commit into from
Nov 13, 2020

Conversation

rhshadrach
Copy link
Member

@rhshadrach rhshadrach commented Nov 12, 2020

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

This potentially closes #9772. The other issue there involves the perhaps unexpected fact that using axis=1 with groupby(...).apply does not transpose the groups that the function is going to be applied to. I've expressed my thoughts on why we should not do so in #9772 (comment).

@jreback jreback added this to the 1.2 milestone Nov 13, 2020
@jreback jreback merged commit b00749c into pandas-dev:master Nov 13, 2020
@jreback
Copy link
Contributor

jreback commented Nov 13, 2020

thanks @rhshadrach very nice.

agree with your rationale for the other part of #9772. I guess its worth opening an issue about it though just to track.

@rhshadrach rhshadrach deleted the axis_1_head branch December 6, 2020 14:04
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 built by columns : cannot use .head() or .apply()
2 participants