4.7.7.1.2.3.1.7. statsmodels.tools.grouputils.Grouping.get_slices

Grouping.get_slices(level=0)[source]

Sets the slices attribute to be a list of indices of the sorted groups for the first index level. I.e., self.slices[0] is the index where each observation is in the first (sorted) group.