human
How to group pandas DataFrame entries by date in a non-unique column
assistant
Here is some code to group dataframe `data` entries by year value of the date in column 'date'

data.groupby(data['date'].map(lambda x: x.year))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.