pandas / 0.23.4 / generated / pandas.index.groupby.html /

pandas.Index.groupby

Index.groupby(values) [source]

Group the index labels by a given array of values.

Parameters:

values : array

Values used to determine the groups.

Returns:

groups : dict

{group name -> group labels}

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Index.groupby.html