-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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: Improve groupby in the User Guide #51704
Conversation
…pby_userguide # Conflicts: # doc/source/user_guide/groupby.rst
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.
Nice! Still need to properly read everything, but this looks like a really nice improvement
cc @DeaMariaLeon @natmokval in case you want to have a look (tagging you as you've both done several docs issues, so this may be of interest - no obligation though!)
I think I should just comment on Richard's edits, but since I have to read the whole document (to be able to understand) I may as well suggest other edits. Should I contribute my edits? If so, in this PR or in a separate PR? |
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 @DeaMariaLeon! Since this PR only touches aggregation, transformation, and filtration, I think we should separate off any requested changes outside of these sections into a separate PR. Would you be up for putting one up?
I've taken your comments and added them inline here. For some, I made comments after them. If there is no comment, then I'm +1 on making the change. If you'd like to push them to this branch, that'd work for me; otherwise I can make them directly - good either way just let me know.
For the ones that have comments after, we should discuss further before making changes.
Sure
Yes, I can (try) to do the push... I will now edit the things for which you were "+1". |
@rhshadrach I did a PR to your branch. |
DOC Checking groupby guide
…pby_userguide � Conflicts: � doc/source/user_guide/groupby.rst
Thanks @DeaMariaLeon - I merged your branch. A few of your comments remain to discuss; can you go through those above and let me know your thoughts. |
@rhshadrach sorry I didn't comment earlier. It's just that I didn't see a problem. I will open a PR, as I said, with edits to the same document but on different sections. |
@MarcoGorelli - I think this is ready for review. @phofl - I believe you said you were planning to take a look. |
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.
small comments
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.
Looks good to me
:meth:`~.DataFrameGroupBy.cov` * ;Compute the covariance of the groups | ||
:meth:`~.DataFrameGroupBy.first`;Compute the first occurring value in each group | ||
:meth:`~.DataFrameGroupBy.idxmax` *;Compute the index of the maximum value in each group | ||
:meth:`~.DataFrameGroupBy.idxmin` *;Compute the index of the minimum value in each group |
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.
This looks weird, does this render properly?
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.
Nice improvements! |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
apologies for not getting to this in time - great work anyway, I've done the backport |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Reworks the aggregation, transformation, and filtration sections of the groupby user guide. The primary change is a greater emphasis on built-in methods and warning users that supplying UDFs to agg, transform, and filter is inefficient.