pandas 1.4.2

Parameters
__init__(self, index_array: 'np.ndarray | None' = None, window_size: 'int | BaseIndexer' = 0, groupby_indices: 'dict | None' = None, window_indexer: 'type[BaseIndexer]' = <class 'pandas.core.indexers.objects.BaseIndexer'>, indexer_kwargs: 'dict | None' = None, **kwargs)

Parameters

index_array : np.ndarray or None

np.ndarray of the index of the original object that we are performing a chained groupby operation over. This index has been pre-sorted relative to the groups

window_size : int or BaseIndexer

window size during the windowing operation

groupby_indices : dict or None

dict of {group label: [positional index of rows belonging to the group]}

window_indexer : BaseIndexer

BaseIndexer class determining the start and end bounds of each group

indexer_kwargs : dict or None

Custom kwargs to be passed to window_indexer

**kwargs :

keyword arguments that will be available when get_window_bounds is called

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/core/indexers/objects.py#279
type: <class 'function'>
Commit: