I want to divide the daily data into 5 groups. Each starts from a different day with a fixed frequency of 5 business days. It's something like all the Monday put together and all the Tuesday put together. I use the resample
function.
df1 = df.resample('5B').first()
df2 = df.resample('5B', offset=1).first()
df3 = df.resample('5B', offset=2).first()
I was expecting that df1
starts from, let's say, 2000-01-03, df2
starts from 2000-01-04 and df3
starts from 2000-01-05. But the result shows that both df2
and df3
start from 2000-01-03. Is my understanding of offset
wrong?