def get_iterator(self, data: NDFrame, axis: int=0):
    '\n        Groupby iterator\n\n        Returns\n        -------\n        Generator yielding sequence of (name, subsetted object)\n        for each group\n        '
    if (axis == 0):
        slicer = (lambda start, edge: data.iloc[start:edge])
    else:
        slicer = (lambda start, edge: data.iloc[:, start:edge])
    length = len(data.axes[axis])
    start = 0
    for (edge, label) in zip(self.bins, self.binlabels):
        if (label is not NaT):
            (yield (label, slicer(start, edge)))
        start = edge
    if (start < length):
        (yield (self.binlabels[(- 1)], slicer(start, None)))
Groupby iterator

Returns
-------
Generator yielding sequence of (name, subsetted object)
for each group
def get_iterator(self, data: NDFrame, axis: int=0):
    '\n        Groupby iterator\n\n        Returns\n        -------\n        Generator yielding sequence of (name, subsetted object)\n        for each group\n        '
    if (axis == 0):
        slicer = (lambda start, edge: data.iloc[start:edge])
    else:
        slicer = (lambda start, edge: data.iloc[:, start:edge])
    length = len(data.axes[axis])
    start = 0
    for (edge, label) in zip(self.bins, self.binlabels):
        if (label is not NaT):
            (yield (label, slicer(start, edge)))
        start = edge
    if (start < length):
        (yield (self.binlabels[(- 1)], slicer(start, None)))