Pandas, Pandas Grouper, Pandas Date, Pandas Dt, Pandas Resample.
will depend on the specific requirements and the nature of the data. It's always a good idea to try out both methods and choose the one that provides the best balance of functionality and performance for a given use case. You can also have a look at the following articles: Explore Pandas In Deep