Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianOuslis committed Feb 4, 2025
1 parent f35fce4 commit a89e745
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
15 changes: 8 additions & 7 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -3664,7 +3664,7 @@ def rolling(
Interval of the moving window.
If an integer, the delta between the start and end of each window.
Example: window = 3 interval from 1 -> 4
The number of points in the window depends on the ``closed`` argument.
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 Expand Up @@ -3711,17 +3711,18 @@ def rolling(
closed : str, default None
Determines the inclusivity of points in the window
If ``'right'``, (First, Last] the last point in the window
If ``'right'``, uses the window (first, last] meaning the last point
is included in the calculations.
If ``'left'``, [First, Last) the first point in the window
If ``'left'``, uses the window [first, last) meaning the first point
is included in the calculations.
If ``'both'``, [First, Last] all points in the window
are included in the calculations.
If ``'both'``, uses the window [first, last] meaning all points in
the window are included in the calculations.
If ``'neither'``, (First, Last) the first and last points
in the window are excludedfrom calculations.
If ``'neither'``, uses the window (first, last) meaning the first
and last points in the window are excluded from calculations.
() and [] are referencing open and closed set
notation respetively.
Expand Down
15 changes: 8 additions & 7 deletions pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ class Window(BaseWindow):
Interval of the moving window.
If an integer, the delta between the start and end of each window.
Example: window = 3 interval from 1 -> 4
The number of points in the window depends on the ``closed`` argument.
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 Expand Up @@ -930,17 +930,18 @@ class Window(BaseWindow):
closed : str, default None
Determines the inclusivity of points in the window
If ``'right'``, (First, Last] the last point in the window
If ``'right'``, uses the window (first, last] meaning the last point
is included in the calculations.
If ``'left'``, [First, Last) the first point in the window
If ``'left'``, uses the window [first, last) meaning the first point
is included in the calculations.
If ``'both'``, [First, Last] all points in the window
are included in the calculations.
If ``'both'``, uses the window [first, last] meaning all points in
the window are included in the calculations.
If ``'neither'``, (First, Last) the first and last points
in the window are excludedfrom calculations.
If ``'neither'``, uses the window (first, last) meaning the first
and last points in the window are excluded from calculations.
() and [] are referencing open and closed set
notation respetively.
Expand Down

0 comments on commit a89e745

Please sign in to comment.