コード例 #1
0
    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
コード例 #2
0
ファイル: expanding.py プロジェクト: johnbullnz/pandas
    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