group dataframe `df` based on minute interval,df.groupby(df.index.map(lambda t: t.minute))