Open shoyer opened 8 years ago
Actually I recall this a bit see here: https://github.com/pydata/pandas/blob/master/pandas/core/groupby.py#L1974
BinGrouper
(which is used in the time-based groupbys) exposes it differently.
I don't think this is actually used anywhere. As even though .groups
is public it internally is just exposed to the user.
Ok if you'd like to see what the problem / fix would be great.
They provide scalars are the values rather all the corresponding labels:
Per the groupby docs, I expected something like the following instead:
We see the same behavior for
resample.groups
as well: