<human>:  How to group DataFrame by a period of time?
<bot>: Here is some code to group dataframe `df` based on minute interval

df.groupby(df.index.map(lambda t: t.minute))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.