pandas.api.indexers.BaseIndexer.get_window_bounds¶
-
BaseIndexer.
get_window_bounds
(self, num_values: int = 0, min_periods: Union[int, NoneType] = None, center: Union[bool, NoneType] = None, closed: Union[str, NoneType] = None) → Tuple[numpy.ndarray, numpy.ndarray][source]¶ Computes the bounds of a window.
- Parameters
- num_valuesint, default 0
number of values that will be aggregated over
- window_sizeint, default 0
the number of rows in a window
- min_periodsint, default None
min_periods passed from the top level rolling API
- centerbool, default None
center passed from the top level rolling API
- closedstr, default None
closed passed from the top level rolling API
- win_typestr, default None
win_type passed from the top level rolling API
- Returns
- A tuple of ndarray[int64]s, indicating the boundaries of each
- window