Suppose I have a DataFrame like this:
ID-A ID-B time
A 1 2022-02-14 00:01:07
2022-02-14 00:02:06
2022-02-14 00:02:55
A 2 2022-02-14 00:00:07
2022-02-14 00:01:07
I want to sum it in a way such that each combination of ID1 and ID2 I have total sum of instances in every 3 minutes.
The issue with calling resample for every 3 minutes is that it creates a new dataframe where the IDs are not retained.
Desired dataframe:
A 1 3
A 2 2