#Downsampling and summing the data that has been aggregated annually data.resample('A').sum()
# Example data idx = pd.date_range('2017-01-01', '2018-12-31') s = pd.Series(1, idx) # Resample s = s.resample('AS-JUN').sum()