Resample time series in pandas to a weekly interval

You can pass anchored offsets to resample, among other options they cover this case.

For example the weekly frequency from Monday:

ts.resample('W-MON')

Leave a Comment