Hi,
I have some problems where I would like to create Pandas groupings with overlapping groups, and am trying to find out if this is possible. Basically, I would like to build a custom grouper that assigns some items to multiple groups, and then be able to run aggregations on those groups.
The data there is for a number of events that have both a start and an end time, and then I need to calculate certain aggregations for the items active at different times. A custom grouper that could assign the items to multiple groups would be a nice solution.
I have tried to read through the source in groupby.py but it's a bit hard to follow at in some parts.
Do you think it is possible to build such a custom grouper, or is it not supported?
Best regards,
Olof Sjöbergh