-
-
Notifications
You must be signed in to change notification settings - Fork 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
docs(python): Update leftover references of by
parameter to group_by
in DataFrame/LazyFrame.upsample/group_by_dynamic/rolling
#15527
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3242,7 +3242,7 @@ def rolling( | |
""" | ||
Create rolling groups based on a temporal or integer column. | ||
|
||
Different from a `dynamic_group_by` the windows are now determined by the | ||
Different from a `group_by_dynamic` the windows are now determined by the | ||
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. Drive by typo fix. Now aligns with |
||
individual values and are not of constant intervals. For constant intervals | ||
use :func:`LazyFrame.group_by_dynamic`. | ||
|
||
|
@@ -3289,8 +3289,8 @@ def rolling( | |
index_column | ||
Column used to group based on the time window. | ||
Often of type Date/Datetime. | ||
This column must be sorted in ascending order (or, if `by` is specified, | ||
then it must be sorted in ascending order within each group). | ||
This column must be sorted in ascending order (or, if `group_by` is | ||
specified, then it must be sorted in ascending order within each group). | ||
|
||
In case of a rolling group by on indices, dtype needs to be one of | ||
{UInt32, UInt64, Int32, Int64}. Note that the first three get temporarily | ||
|
@@ -3316,8 +3316,8 @@ def rolling( | |
------- | ||
LazyGroupBy | ||
Object you can call `.agg` on to aggregate by groups, the result | ||
of which will be sorted by `index_column` (but note that if `by` columns are | ||
passed, it will only be sorted within each `by` group). | ||
of which will be sorted by `index_column` (but note that if `group_by` | ||
columns are passed, it will only be sorted within each group). | ||
|
||
See Also | ||
-------- | ||
|
@@ -3409,15 +3409,15 @@ def group_by_dynamic( | |
datapoint. See the `start_by` argument description for details. | ||
|
||
.. warning:: | ||
The index column must be sorted in ascending order. If `by` is passed, then | ||
The index column must be sorted in ascending order. If `group_by` is passed, then | ||
the index column must be sorted in ascending order within each group. | ||
|
||
Parameters | ||
---------- | ||
index_column | ||
Column used to group based on the time window. | ||
Often of type Date/Datetime. | ||
This column must be sorted in ascending order (or, if `by` is specified, | ||
This column must be sorted in ascending order (or, if `group_by` is specified, | ||
then it must be sorted in ascending order within each group). | ||
|
||
In case of a dynamic group by on indices, dtype needs to be one of | ||
|
@@ -3480,8 +3480,8 @@ def group_by_dynamic( | |
------- | ||
LazyGroupBy | ||
Object you can call `.agg` on to aggregate by groups, the result | ||
of which will be sorted by `index_column` (but note that if `by` columns are | ||
passed, it will only be sorted within each `by` group). | ||
of which will be sorted by `index_column` (but note that if `group_by` columns are | ||
passed, it will only be sorted within each group). | ||
|
||
See Also | ||
-------- | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 that the
by
in "...within eachby
group)." isn't needed anymore.The
group_by
parameter name makes it very obvious what the group is.