pandas.Index.groupby¶
-
Index.
groupby
(values) → Dict[Hashable, numpy.ndarray][source]¶ Group the index labels by a given array of values.
- Parameters
- valuesarray
Values used to determine the groups.
- Returns
- dict
{group name -> group labels}
Index.
groupby
(values) → Dict[Hashable, numpy.ndarray][source]¶Group the index labels by a given array of values.
Values used to determine the groups.
{group name -> group labels}