@final
def size(self) -> Series:
    '\n        Compute group sizes.\n        '
    (ids, _, ngroups) = self.group_info
    if ngroups:
        out = np.bincount(ids[(ids != (- 1))], minlength=ngroups)
    else:
        out = []
    return Series(out, index=self.result_index, dtype='int64')
Compute group sizes.
@final
def size(self) -> Series:
    '\n        \n        '
    (ids, _, ngroups) = self.group_info
    if ngroups:
        out = np.bincount(ids[(ids != (- 1))], minlength=ngroups)
    else:
        out = []
    return Series(out, index=self.result_index, dtype='int64')