Groupby Year Datetime Pandas

data.groupby(data.date.dt.year)
ashattack