pandas.Index.groupby — pandas 0.18.1 documentation (original) (raw)
Index.groupby(to_groupby)¶
Group the index labels by a given array of values.
Parameters: | to_groupby : array Values used to determine the groups. |
---|---|
Returns: | groups : dict {group name -> group labels} |