Пример #1
0
def _group_labels(values):
    if values.dtype != np.object_:
        values = values.astype('O')
    return lib.group_labels(values)
Пример #2
0
def _group_labels(values):
    if values.dtype != np.object_:
        values = values.astype('O')
    return lib.group_labels(values)
Пример #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
Пример #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