def _get_window_indexer(self) -> GroupbyIndexer: """ Return an indexer class that will compute the window start and end bounds Returns ------- GroupbyIndexer """ window_indexer = GroupbyIndexer( groupby_indicies=self._grouper.indices, window_indexer=ExpandingIndexer, ) return window_indexer
def _get_window_indexer(self, window: int) -> GroupbyIndexer: """ Return an indexer class that will compute the window start and end bounds Parameters ---------- window : int window size for FixedWindowIndexer (unused) Returns ------- GroupbyIndexer """ window_indexer = GroupbyIndexer( groupby_indicies=self._groupby.indices, window_indexer=ExpandingIndexer, ) return window_indexer