Pandas, Pandas Grouper, Pandas Date, Pandas Dt, Pandas Resample.
for small to medium-sized datasets. However, for larger datasets, the resample performs better because it is optimized for time-based resampling. On the other hand, pd.Grouperalong with groupby provides more flexibility and allows for more complex grouping operations. Ultimately, the best method