how to group pandas dataframe entries by date in a non-unique column,data.groupby(lambda x: data['date'][x].year)