Skip to content

Commit

Permalink
docs: update by docs for rolling_*_by functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Nov 10, 2024
1 parent 2c6bae1 commit 941d32b
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6200,7 +6200,8 @@ def rolling_min_by(
Parameters
----------
by
This column must be of dtype Datetime or Date.
Should be ``DateTime``, ``Date``, ``UInt64``, ``UInt32``, ``Int64``,
or ``Int32`` data type.
window_size
The length of the window. Can be a dynamic temporal
size indicated by a timedelta or the following string language:
Expand Down Expand Up @@ -6322,7 +6323,8 @@ def rolling_max_by(
Parameters
----------
by
This column must be of dtype Datetime or Date.
Should be ``DateTime``, ``Date``, ``UInt64``, ``UInt32``, ``Int64``,
or ``Int32`` data type.
window_size
The length of the window. Can be a dynamic temporal
size indicated by a timedelta or the following string language:
Expand Down Expand Up @@ -6470,7 +6472,8 @@ def rolling_mean_by(
Parameters
----------
by
This column must be of dtype Datetime or Date.
Should be ``DateTime``, ``Date``, ``UInt64``, ``UInt32``, ``Int64``,
or ``Int32`` data type.
window_size
The length of the window. Can be a dynamic temporal
size indicated by a timedelta or the following string language:
Expand Down Expand Up @@ -6649,7 +6652,8 @@ def rolling_sum_by(
The number of values in the window that should be non-null before computing
a result.
by
This column must of dtype `{Date, Datetime}`
Should be ``DateTime``, ``Date``, ``UInt64``, ``UInt32``, ``Int64``,
or ``Int32`` data type.
closed : {'left', 'right', 'both', 'none'}
Define which sides of the temporal interval are closed (inclusive),
defaults to `'right'`.
Expand Down Expand Up @@ -6774,7 +6778,8 @@ def rolling_std_by(
Parameters
----------
by
This column must be of dtype Datetime or Date.
Should be ``DateTime``, ``Date``, ``UInt64``, ``UInt32``, ``Int64``,
or ``Int32`` data type.
window_size
The length of the window. Can be a dynamic temporal
size indicated by a timedelta or the following string language:
Expand Down Expand Up @@ -6931,7 +6936,8 @@ def rolling_var_by(
Parameters
----------
by
This column must be of dtype Datetime or Date.
Should be ``DateTime``, ``Date``, ``UInt64``, ``UInt32``, ``Int64``,
or ``Int32`` data type.
window_size
The length of the window. Can be a dynamic temporal
size indicated by a timedelta or the following string language:
Expand Down Expand Up @@ -7087,7 +7093,8 @@ def rolling_median_by(
Parameters
----------
by
This column must be of dtype Datetime or Date.
Should be ``DateTime``, ``Date``, ``UInt64``, ``UInt32``, ``Int64``,
or ``Int32`` data type.
window_size
The length of the window. Can be a dynamic temporal
size indicated by a timedelta or the following string language:
Expand Down Expand Up @@ -7213,7 +7220,8 @@ def rolling_quantile_by(
Parameters
----------
by
This column must be of dtype Datetime or Date.
Should be ``DateTime``, ``Date``, ``UInt64``, ``UInt32``, ``Int64``,
or ``Int32`` data type.
quantile
Quantile between 0.0 and 1.0.
interpolation : {'nearest', 'higher', 'lower', 'midpoint', 'linear'}
Expand Down

0 comments on commit 941d32b

Please sign in to comment.