Pandas has great support for dates and times — and that extends to its grouping capabilities, too. In this video, I show you how to group on datetime fields, both indirectly (by creating a new column) and directly in the call to "groupby". This video continues my previous one, in which I introduce grouping in pandas.
Jupyter notebooks from what I create here are all at https://github.com/reuven/YouTube-not....
And for free, weekly Python articles, check out https://BetterDevelopersWeekly.com/.
Watch video Grouping on dates in pandas online, duration hours minute second in high quality that is uploaded to the channel Python and Pandas with Reuven Lerner 01 March 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 20,693 times and liked it 371 visitors.