def __init__(self, data: NDFrameT, labels: npt.NDArray[np.intp], ngroups: int, axis: int=0):
    self.data = data
    self.labels = ensure_platform_int(labels)
    self.ngroups = ngroups
    self.axis = axis
    assert isinstance(axis, int), axis
def __init__(self, data: NDFrameT, labels: npt.NDArray[np.intp], ngroups: int, axis: int=0):
    self.data = data
    self.labels = ensure_platform_int(labels)
    self.ngroups = ngroups
    self.axis = axis
    assert isinstance(axis, int), axis