Skip to content

Commit 772fbc0

Browse files
DOC: Add 'See Also' and 'Parameters' for pandas.api.indexers.VariableOffsetWindowIndexer (#59377)
Add 'See Also' and 'Parameters' Add 'See Also' and 'Parameters' for VariableOffsetWindowIndexer Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 3b447d6 commit 772fbc0

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
263263
-i "pandas.api.extensions.ExtensionArray.tolist RT03,SA01" \
264264
-i "pandas.api.extensions.ExtensionArray.unique RT03,SA01" \
265265
-i "pandas.api.extensions.ExtensionArray.view SA01" \
266-
-i "pandas.api.indexers.VariableOffsetWindowIndexer PR01,SA01" \
267266
-i "pandas.api.interchange.from_dataframe RT03,SA01" \
268267
-i "pandas.api.types.is_bool PR01,SA01" \
269268
-i "pandas.api.types.is_bool_dtype SA01" \

pandas/core/indexers/objects.py

+25
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,31 @@ class VariableOffsetWindowIndexer(BaseIndexer):
167167
"""
168168
Calculate window boundaries based on a non-fixed offset such as a BusinessDay.
169169
170+
Parameters
171+
----------
172+
index_array : np.ndarray, default 0
173+
Array-like structure specifying the indices for data points.
174+
This parameter is currently not used.
175+
176+
window_size : int, optional, default 0
177+
Specifies the number of data points in each window.
178+
This parameter is currently not used.
179+
180+
index : DatetimeIndex, optional
181+
``DatetimeIndex`` of the labels of each observation.
182+
183+
offset : BaseOffset, optional
184+
``DateOffset`` representing the size of the window.
185+
186+
**kwargs
187+
Additional keyword arguments passed to the parent class ``BaseIndexer``.
188+
189+
See Also
190+
--------
191+
api.indexers.BaseIndexer : Base class for all indexers.
192+
DataFrame.rolling : Rolling window calculations on DataFrames.
193+
offsets : Module providing various time offset classes.
194+
170195
Examples
171196
--------
172197
>>> from pandas.api.indexers import VariableOffsetWindowIndexer

0 commit comments

Comments
 (0)