Groupby and period

Hello,

I have this dataset. I want to group by name and calculate the average of CLOSE over a 5-day period.

CAMBACERES.xlsx

For example :

Thanks

Br