pandas group by time windows,s.groupby(grouper).sum()