GrupoBy Year DateTime Pandas

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