How to iterate over time periods in pandas,"s.resample('3M', how='sum')"