How to group DataFrame by a period of time?,df.groupby(df.index.map(lambda t: t.minute))