def get_iterator(self, data: NDFrameT, axis: int=0) -> Iterator[tuple[(Hashable, NDFrameT)]]:
    '\n        Groupby iterator\n\n        Returns\n        -------\n        Generator yielding sequence of (name, subsetted object)\n        for each group\n        '
    splitter = self._get_splitter(data, axis=axis)
    keys = self.group_keys_seq
    for (key, group) in zip(keys, splitter):
        (yield (key, group.__finalize__(data, method='groupby')))
Groupby iterator

Returns
-------
Generator yielding sequence of (name, subsetted object)
for each group
def get_iterator(self, data: NDFrameT, axis: int=0) -> Iterator[tuple[(Hashable, NDFrameT)]]:
    '\n        Groupby iterator\n\n        Returns\n        -------\n        Generator yielding sequence of (name, subsetted object)\n        for each group\n        '
    splitter = self._get_splitter(data, axis=axis)
    keys = self.group_keys_seq
    for (key, group) in zip(keys, splitter):
        (yield (key, group.__finalize__(data, method='groupby')))