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