Rolling function in pandas

Sir please explain this function and what is the purpose of 5d here ???

Hi,
5d here is used to get a rolling average of 5 consecutive days. We can also change it to 3d for 3 days, and so on.