-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: sort has no effect on filters #51825
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
Changes from 6 commits
fe1bf42
c77d050
b89c6e8
c1cfc4a
a0cb065
63dd4d6
f6b2d68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,11 +114,17 @@ | |
as_index : bool, default True | ||
For aggregated output, return object with group labels as the | ||
index. Only relevant for DataFrame input. as_index=False is | ||
effectively "SQL-style" grouped output. | ||
effectively "SQL-style" grouped output. This argument has no effect | ||
on filtrations (see the `filtration user guide | ||
<https://pandas.pydata.org/docs/dev/user_guide/groupby.html#filtration>`_), | ||
such as ``head()``, ``tail()`` and ``nth()``. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add in transformations here as well? I would describe it as "filtrations in the user guide" rather than "filteration user guide"; what do you think? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree, "filtrations in the user guide" sounds more correct and more clear. |
||
sort : bool, default True | ||
Sort group keys. Get better performance by turning this off. | ||
Note this does not influence the order of observations within each | ||
group. Groupby preserves the order of rows within each group. | ||
This argument has no effect on filtrations (see the `filtration user guide | ||
<https://pandas.pydata.org/docs/dev/user_guide/groupby.html#filtration>`_), | ||
such as ``head()``, ``tail()`` and ``nth()``. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar remarks here. |
||
|
||
.. versionchanged:: 2.0.0 | ||
|
||
|
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.
With your addition (if we add in transformations, see below), I think "For aggregated output," can be removed. But I'm also okay with it staying as well.
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 removed "For aggregated output,". With my addition, there is no need to write this.