You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,7 @@
84
84
- Added support for the `dtypes` parameter of `pd.get_dummies`
85
85
- Added support for `nunique` in `df.pivot_table`, `df.agg` and other places where aggregate functions can be used.
86
86
- Added support for `DataFrame.interpolate` and `Series.interpolate` with the "linear", "ffill"/"pad", and "backfill"/bfill" methods. These use the SQL `INTERPOLATE_LINEAR`, `INTERPOLATE_FFILL`, and `INTERPOLATE_BFILL` functions (PuPr).
87
+
- Added support for `Dataframe.groupby.rolling()`.
Copy file name to clipboardExpand all lines: src/snowflake/snowpark/modin/plugin/docstrings/groupby.py
+70-1Lines changed: 70 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2424,7 +2424,76 @@ def expanding():
2424
2424
pass
2425
2425
2426
2426
defrolling():
2427
-
pass
2427
+
"""
2428
+
Return a rolling grouper, providing rolling functionality per group.
2429
+
2430
+
This implementation supports both fixed window-based and time-based rolling operations
2431
+
with groupby functionality.
2432
+
2433
+
Parameters
2434
+
----------
2435
+
window : int, timedelta, str, offset, or BaseIndexer subclass
2436
+
Size of the moving window.
2437
+
If an integer, the fixed number of observations used for each window.
2438
+
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 the time-period. This is only valid for datetimelike indexes. To learn more about the offsets & frequency strings, please see `this link <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`.
2439
+
If a BaseIndexer subclass, the window boundaries based on the defined `get_window_bounds` method. Additional rolling keyword arguments, namely `min_periods`, `center`, `closed` and `step` will be passed to `get_window_bounds`.
2440
+
2441
+
min_periods : int, default None
2442
+
Minimum number of observations in window required to have a value; otherwise, result is `np.nan`.
2443
+
For a window that is specified by an offset, `min_periods` will default to 1.
2444
+
For a window that is specified by an integer, `min_periods` will default to the size of the window.
2445
+
2446
+
center : bool, default False
2447
+
If False, set the window labels as the right edge of the window index.
2448
+
If True, set the window labels as the center of the window index.
2449
+
2450
+
win_type : str, default None
2451
+
If `None`, all points are evenly weighted.
2452
+
If a string, it must be a valid scipy.signal window function.
2453
+
Certain Scipy window types require additional parameters to be passed in the aggregation function. The additional parameters must match the keywords specified in the Scipy window type method signature.
2454
+
2455
+
on : str, optional
2456
+
For a DataFrame, a column label or Index level on which to calculate the rolling window, rather than the DataFrame's index.
2457
+
Provided integer column is ignored and excluded from result since an integer index is not used to calculate the rolling window.
2458
+
2459
+
axis : int or str, default 0
2460
+
If `0` or `'index'`, roll across the rows.
2461
+
If `1` or `'columns'`, roll across the columns.
2462
+
For Series this parameter is unused and defaults to 0.
2463
+
2464
+
closed : str, default None
2465
+
If `'right'`, the first point in the window is excluded from calculations.
2466
+
If `'left'`, the last point in the window is excluded from calculations.
2467
+
If `'both'`, no points in the window are excluded from calculations.
2468
+
If `'neither'`, the first and last points in the window are excluded from calculations.
0 commit comments