Skip to content

DOC: Add 'See Also' and 'Parameters' for pandas.api.indexers.VariableOffsetWindowIndexer #59377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.api.extensions.ExtensionArray.tolist RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray.unique RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray.view SA01" \
-i "pandas.api.indexers.VariableOffsetWindowIndexer PR01,SA01" \
-i "pandas.api.interchange.from_dataframe RT03,SA01" \
-i "pandas.api.types.is_bool PR01,SA01" \
-i "pandas.api.types.is_bool_dtype SA01" \
Expand Down
25 changes: 25 additions & 0 deletions pandas/core/indexers/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,31 @@ class VariableOffsetWindowIndexer(BaseIndexer):
"""
Calculate window boundaries based on a non-fixed offset such as a BusinessDay.

Parameters
----------
index_array : np.ndarray, default 0
Array-like structure specifying the indices for data points.
This parameter is currently not used.

window_size : int, optional, default 0
Specifies the number of data points in each window.
This parameter is currently not used.

index : DatetimeIndex, optional
``DatetimeIndex`` of the labels of each observation.

offset : BaseOffset, optional
``DateOffset`` representing the size of the window.

**kwargs
Additional keyword arguments passed to the parent class ``BaseIndexer``.

See Also
--------
api.indexers.BaseIndexer : Base class for all indexers.
DataFrame.rolling : Rolling window calculations on DataFrames.
offsets : Module providing various time offset classes.

Examples
--------
>>> from pandas.api.indexers import VariableOffsetWindowIndexer
Expand Down
Loading