I have a pandas df that was created using groupby(df['date'].dt.to_period('W-SAT')).agg({'price': 'mean'}). Now I want to expand that table so that each date gets a row that includes that week's mean. How do I go about that? Here is an example
date avg_price
2020-02-09/2020-02-15 6.438312
2020-02-16/2020-02-22 3.477643
2020-02-23/2020-02-29 8.784417
2020-03-01/2020-03-07 12.897191
and I want it to look like
date avg_price
2020-02-09 6.438312
2020-02-10 6.438312
2020-02-11 6.438312
2020-02-12 6.438312
Thanks!