human
How to iterate over time periods in pandas
assistant
Here is some code to resample series `s` into 3 months bins and sum each bin

s.resample('3M', how='sum')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.