Skip to content

Commit c3d9cc0

Browse files
format
1 parent 9057afb commit c3d9cc0

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

pandas/core/groupby/groupby.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3654,18 +3654,22 @@ def rolling(
36543654
an integer index is not used to calculate the rolling window.
36553655
36563656
closed : str, default None
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.
3657+
Determines the inclusivity of points in the window
3658+
If ``'right'``, (First, Last] the last point in the window
3659+
is included in the calculations.
36593660
3660-
If ``'left'``, [First, Last) the first point in the window is included in the calculations.
3661+
If ``'left'``, [First, Last) the first point in the window
3662+
is included in the calculations.
36613663
3662-
If ``'both'``, [First, Last] all points in the window are included in the calculations.
3664+
If ``'both'``, [First, Last] all points in the window
3665+
are included in the calculations.
36633666
3664-
If ``'neither'``, (First, Last) the first and last points in the window are excluded
3665-
from calculations.
3667+
If ``'neither'``, (First, Last) the first and last points
3668+
in the window are excludedfrom calculations.
3669+
3670+
() and [] are referencing open and closed set
3671+
notation respetively.
36663672
3667-
() and [] are referencing open and closed set notation respetively.
3668-
36693673
Default ``None`` (``'right'``).
36703674
36713675
method : str {'single', 'table'}, default 'single'

pandas/core/window/rolling.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -929,18 +929,22 @@ class Window(BaseWindow):
929929
an integer index is not used to calculate the rolling window.
930930
931931
closed : str, default None
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.
932+
Determines the inclusivity of points in the window
933+
If ``'right'``, (First, Last] the last point in the window
934+
is included in the calculations.
934935
935-
If ``'left'``, [First, Last) the first point in the window is included in the calculations.
936+
If ``'left'``, [First, Last) the first point in the window
937+
is included in the calculations.
936938
937-
If ``'both'``, [First, Last] all points in the window are included in the calculations.
939+
If ``'both'``, [First, Last] all points in the window
940+
are included in the calculations.
938941
939-
If ``'neither'``, (First, Last) the first and last points in the window are excluded
940-
from calculations.
942+
If ``'neither'``, (First, Last) the first and last points
943+
in the window are excludedfrom calculations.
944+
945+
() and [] are referencing open and closed set
946+
notation respetively.
941947
942-
() and [] are referencing open and closed set notation respetively.
943-
944948
Default ``None`` (``'right'``).
945949
946950
step : int, default None

0 commit comments

Comments
 (0)