Skip to content

Commit 9057afb

Browse files
change docs
1 parent d72f165 commit 9057afb

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

pandas/core/groupby/groupby.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3654,15 +3654,18 @@ def rolling(
36543654
an integer index is not used to calculate the rolling window.
36553655
36563656
closed : str, default None
3657-
If ``'right'``, the first point in the window is excluded from calculations.
3657+
Determines the inclusivity of points in the window
3658+
If ``'right'``, (First, Last] the last point in the window is included in the calculations.
36583659
3659-
If ``'left'``, the last point in the window is excluded from calculations.
3660+
If ``'left'``, [First, Last) the first point in the window is included in the calculations.
36603661
3661-
If ``'both'``, no points in the window are excluded from calculations.
3662+
If ``'both'``, [First, Last] all points in the window are included in the calculations.
36623663
3663-
If ``'neither'``, the first and last points in the window are excluded
3664+
If ``'neither'``, (First, Last) the first and last points in the window are excluded
36643665
from calculations.
36653666
3667+
() and [] are referencing open and closed set notation respetively.
3668+
36663669
Default ``None`` (``'right'``).
36673670
36683671
method : str {'single', 'table'}, default 'single'

pandas/core/window/rolling.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -929,15 +929,18 @@ class Window(BaseWindow):
929929
an integer index is not used to calculate the rolling window.
930930
931931
closed : str, default None
932-
If ``'right'``, the first point in the window is excluded from calculations.
932+
Determines the inclusivity of points in the window
933+
If ``'right'``, (First, Last] the last point in the window is included in the calculations.
933934
934-
If ``'left'``, the last point in the window is excluded from calculations.
935+
If ``'left'``, [First, Last) the first point in the window is included in the calculations.
935936
936-
If ``'both'``, no point in the window is excluded from calculations.
937+
If ``'both'``, [First, Last] all points in the window are included in the calculations.
937938
938-
If ``'neither'``, the first and last points in the window are excluded
939+
If ``'neither'``, (First, Last) the first and last points in the window are excluded
939940
from calculations.
940941
942+
() and [] are referencing open and closed set notation respetively.
943+
941944
Default ``None`` (``'right'``).
942945
943946
step : int, default None

0 commit comments

Comments
 (0)