def _group_labels(values): if values.dtype != np.object_: values = values.astype('O') return lib.group_labels(values)
def _make_labels(self): ids, labels, counts = lib.group_labels(self.grouper) sids, slabels, scounts = sort_group_labels(ids, labels, counts) self._labels = slabels self._ids = sids self._counts = scounts