Say I want to groupby/resample by week. How can I assign the resample index back into the original dataframe like so?
index date
0 1/1/22
1 1/2/22
2 1/3/22
3 1/4/22
4 1/5/22
5 1/6/22
6 1/7/22
7 1/8/22
8 1/9/22
9 1/10/22
index date resample_index
0 1/1/22 1/1/22
1 1/2/22 1/1/22
2 1/3/22 1/1/22
3 1/4/22 1/1/22
4 1/5/22 1/1/22
5 1/6/22 1/1/22
6 1/7/22 1/1/22
7 1/8/22 1/8/22
8 1/9/22 1/8/22
9 1/10/22 1/8/22