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

DOC: Add to docs on group_keys in groupby.apply #47185

Merged
merged 3 commits into from
Jun 2, 2022

Conversation

rhshadrach
Copy link
Member

  • closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@rhshadrach rhshadrach added Docs Groupby Apply Apply, Aggregate, Transform, Map labels Jun 1, 2022
@rhshadrach rhshadrach added this to the 1.5 milestone Jun 1, 2022
B C
A
a 1.0 2.0
b 0.0 0.0

The ``group_keys`` argument has no effect here because the result is not
like-indexed when compared to the input.
Copy link
Member

Choose a reason for hiding this comment

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

I think I might be worth adding the parenthesized description of like-indexed like you did below for in the group_keys descriptions e.g. because the result is not like-indexed (transformed) compared to the input

Copy link
Member Author

@rhshadrach rhshadrach Jun 2, 2022

Choose a reason for hiding this comment

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

Thanks - I changed it to (i.e. a transform) with a link to the user guide on transforms in each place.

@mroeschke mroeschke merged commit a2f5815 into pandas-dev:main Jun 2, 2022
@mroeschke
Copy link
Member

Thanks @rhshadrach (failure unrelated)

@rhshadrach rhshadrach deleted the apply_groupkeys_docstring branch June 2, 2022 16:11
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
* DOC: Add to docs on group_keys in groupby.apply

* Add link to user guide
rapids-bot bot pushed a commit to rapidsai/cudf that referenced this pull request Sep 8, 2022
- [x] This PR adds support for `group_keys` in `groupby`. Starting pandas 1.5.0, issues around `group_keys` have been resolved:

pandas-dev/pandas#34998
pandas-dev/pandas#47185

- [x] This PR defaults `group_keys` to `False` which is the same as what pandas is going to be defaulting to in the future version.
- [x] Required to unblock `pandas-1.5.0` upgrade in cudf: #11617

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Bradley Dice (https://github.com/bdice)
  - Ashwin Srinath (https://github.com/shwina)

URL: #11659
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Docs Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants