Concept Flow - Resampling with groupby for time data
Start with time-indexed DataFrame
Group data by a category column
Apply resampling on each group by time frequency
Aggregate each resampled group (mean, sum, etc.)
Combine results into one DataFrame
Output resampled grouped data
We first group the data by a category, then resample each group by time intervals, aggregate, and combine results.
