Esempio n. 1
0
def _group_labels(values):
    if values.dtype != np.object_:
        values = values.astype('O')
    return lib.group_labels(values)
Esempio n. 2
0
def _group_labels(values):
    if values.dtype != np.object_:
        values = values.astype('O')
    return lib.group_labels(values)
Esempio n. 3
0
 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
Esempio n. 4
0
 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