@@ -167,6 +167,38 @@ class VariableOffsetWindowIndexer(BaseIndexer):
167
167
"""
168
168
Calculate window boundaries based on a non-fixed offset such as a BusinessDay.
169
169
170
+ Parameters
171
+ ----------
172
+ index_array : np.ndarray, default 0
173
+ Array-like structure specifying the indices for data points.
174
+ If not provided, the default index is used. This parameter is
175
+ especially useful for handling datasets with non-uniform or
176
+ irregular indices.
177
+
178
+ window_size : int, optional, default 0
179
+ Specifies the number of data points in each window.
180
+ A value of 0 means the window size is determined dynamically
181
+ based on the provided `offset` and `index`.
182
+
183
+ index : DatetimeIndex, optional
184
+ The time index that dictates the window boundaries.
185
+ This should be a `DatetimeIndex` which aligns with the temporal
186
+ nature of the data.
187
+
188
+ offset : BaseOffset, optional
189
+ A pandas offset object used to calculate the window boundaries.
190
+ It defines the time-based offset that adjusts the size and
191
+ position of the windows.
192
+
193
+ **kwargs
194
+ Additional keyword arguments passed to the parent class `BaseIndexer`.
195
+
196
+ See Also
197
+ --------
198
+ api.indexers.BaseIndexer : Base class for all indexers.
199
+ DataFrame.rolling : Rolling window calculations on DataFrames.
200
+ offsets : Module providing various time offset classes.
201
+
170
202
Examples
171
203
--------
172
204
>>> from pandas.api.indexers import VariableOffsetWindowIndexer
0 commit comments