-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
DOC: Add to docs on group_keys in groupby.apply #47185
Conversation
pandas/core/groupby/groupby.py
Outdated
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. |
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.
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
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.
Thanks - I changed it to (i.e. a transform)
with a link to the user guide on transforms in each place.
Thanks @rhshadrach (failure unrelated) |
* DOC: Add to docs on group_keys in groupby.apply * Add link to user guide
- [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
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.