-
-
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: Improvements to groupby.rst #51626
Conversation
doc/source/user_guide/groupby.rst
Outdated
|
||
``apply`` has to try to infer from the result whether it should act as a reducer, | ||
transformer, *or* filter, depending on exactly what is passed to it. Thus the | ||
grouped column(s) may be included in the output as well as set the indices. While |
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.
may be included in the output as well as set as the indices
This sounds better to me, but best to double check, otherwise lgtm
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.
Indeed - thanks. I also changed it from "as well as" to "or" since we don't do both.
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.
Actually - looking at this again I think we want to say "may be included in the output or not"
thx @rhshadrach |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Doing a general cleanup of the groupby user guide. The main new thing being introduce here is language to steer users way from groupby.apply.