How do I resample a time series in pandas to a weekly frequency where the weeks start on an arbitrary day? I see that there\'s an optional keyword base but it only works for
Neither Andy Haydens nor denfromufas answer worked for me but that did: df.resample('W', label='left', loffset=pd.DateOffset(days=1))
df.resample('W', label='left', loffset=pd.DateOffset(days=1))
as described in that answer: https://stackoverflow.com/a/46712821/1743551