File tree 2 files changed +24
-10
lines changed
2 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -3717,14 +3717,21 @@ def rolling(
3717
3717
an integer index is not used to calculate the rolling window.
3718
3718
3719
3719
closed : str, default None
3720
- If ``'right'``, the first point in the window is excluded from calculations.
3720
+ Determines the inclusivity of points in the window
3721
+ If ``'right'``, (First, Last] the last point in the window
3722
+ is included in the calculations.
3721
3723
3722
- If ``'left'``, the last point in the window is excluded from calculations.
3724
+ If ``'left'``, [First, Last) the first point in the window
3725
+ is included in the calculations.
3723
3726
3724
- If ``'both'``, no points in the window are excluded from calculations.
3727
+ If ``'both'``, [First, Last] all points in the window
3728
+ are included in the calculations.
3725
3729
3726
- If ``'neither'``, the first and last points in the window are excluded
3727
- from calculations.
3730
+ If ``'neither'``, (First, Last) the first and last points
3731
+ in the window are excludedfrom calculations.
3732
+
3733
+ () and [] are referencing open and closed set
3734
+ notation respetively.
3728
3735
3729
3736
Default ``None`` (``'right'``).
3730
3737
Original file line number Diff line number Diff line change @@ -929,14 +929,21 @@ class Window(BaseWindow):
929
929
an integer index is not used to calculate the rolling window.
930
930
931
931
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
934
+ is included in the calculations.
933
935
934
- If ``'left'``, the last point in the window is excluded from calculations.
936
+ If ``'left'``, [First, Last) the first point in the window
937
+ is included in the calculations.
935
938
936
- If ``'both'``, no point in the window is excluded from calculations.
939
+ If ``'both'``, [First, Last] all points in the window
940
+ are included in the calculations.
937
941
938
- If ``'neither'``, the first and last points in the window are excluded
939
- 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.
940
947
941
948
Default ``None`` (``'right'``).
942
949
You can’t perform that action at this time.
0 commit comments