Group by interval of datetime using pandas,df1.resample('5Min').sum()