By the methods it supports, it looks like nothing speaks against labels of the original data frame/series occuring multiple times in a derived GroupBy
object. Is it actually possible to, for example, construct a GroupBy object g
from an iterable column like a
in
>>> x
a b
0 [0, 1] 1
1 [1, 2] 2
such that g
will represent a GroupBy object with one entry for each of the entries in a
's values? That is, I get results like
>>> x.iterable_groupby('a').size()
a
0 1
1 2
2 1
>>> x.iterable_groupby('a').mean()
b
0 1.0
1 1.5
2 2.0