Skip to content

DOC: Closed parameter not intuitively documented in DataFrame.rolling #60844

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

Merged
merged 13 commits into from
Feb 8, 2025
Merged
6 changes: 3 additions & 3 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -3659,10 +3659,10 @@ def rolling(
Parameters
----------
window : int, timedelta, str, offset, or BaseIndexer subclass
Size of the moving window.
Interval of the moving window.

If an integer, the fixed number of observations used for
each window.
If an integer, the delta between the start and end of each window.
Example: window = 3 interval from 1 -> 4

If a timedelta, str, or offset, the time period of each window. Each
window will be a variable sized based on the observations included in
Expand Down
6 changes: 3 additions & 3 deletions pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,10 +881,10 @@ class Window(BaseWindow):
Parameters
----------
window : int, timedelta, str, offset, or BaseIndexer subclass
Size of the moving window.
Interval of the moving window.

If an integer, the fixed number of observations used for
each window.
If an integer, the delta between the start and end of each window.
Example: window = 3 interval from 1 -> 4

If a timedelta, str, or offset, the time period of each window. Each
window will be a variable sized based on the observations included in
Expand Down
Loading