SyntaxFix
Write A Post
Hire A Developer
Questions
this will also work
data.groupby(data['date'].dt.year)