I have some data from log files and would like to group entries by a minute:
def gen(date, count=10): while count > 0: yield date, \"event{
Since the original answer is rather old and pandas introduced periods a different solution is nowadays:
df.groupby(df.index.to_period('T'))
Additionally, you can resample
df.resample('T')