Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianOuslis committed Feb 2, 2025
1 parent 9057afb commit c3d9cc0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
20 changes: 12 additions & 8 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -3654,18 +3654,22 @@ def rolling(
an integer index is not used to calculate the rolling window.
closed : str, default None
Determines the inclusivity of points in the window
If ``'right'``, (First, Last] the last point in the window is included in the calculations.
Determines the inclusivity of points in the window
If ``'right'``, (First, Last] the last point in the window
is included in the calculations.
If ``'left'``, [First, Last) the first point in the window is included in the calculations.
If ``'left'``, [First, Last) the first point in the window
is included in the calculations.
If ``'both'``, [First, Last] all points in the window are included in the calculations.
If ``'both'``, [First, Last] all points in the window
are included in the calculations.
If ``'neither'``, (First, Last) the first and last points in the window are excluded
from calculations.
If ``'neither'``, (First, Last) the first and last points
in the window are excludedfrom calculations.
() and [] are referencing open and closed set
notation respetively.
() and [] are referencing open and closed set notation respetively.
Default ``None`` (``'right'``).
method : str {'single', 'table'}, default 'single'
Expand Down
20 changes: 12 additions & 8 deletions pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,18 +929,22 @@ class Window(BaseWindow):
an integer index is not used to calculate the rolling window.
closed : str, default None
Determines the inclusivity of points in the window
If ``'right'``, (First, Last] the last point in the window is included in the calculations.
Determines the inclusivity of points in the window
If ``'right'``, (First, Last] the last point in the window
is included in the calculations.
If ``'left'``, [First, Last) the first point in the window is included in the calculations.
If ``'left'``, [First, Last) the first point in the window
is included in the calculations.
If ``'both'``, [First, Last] all points in the window are included in the calculations.
If ``'both'``, [First, Last] all points in the window
are included in the calculations.
If ``'neither'``, (First, Last) the first and last points in the window are excluded
from calculations.
If ``'neither'``, (First, Last) the first and last points
in the window are excludedfrom calculations.
() and [] are referencing open and closed set
notation respetively.
() and [] are referencing open and closed set notation respetively.
Default ``None`` (``'right'``).
step : int, default None
Expand Down

0 comments on commit c3d9cc0

Please sign in to comment.