Doubt in parameter passed in rolling function (Pandas)

In rolling function while calculating moving average, we are passing the string (“5d”) as parameter. I have tried passing integer (5) as parameter which gave different results. Even 5th value doesn’t match in both methods. Please tell the difference between both approaches or some documentation related to this will be helpful.
I have attached the image for reference.


Hi @SahilBansal,
Please refer to the following thread, you’ll get the solution : Nifty Case Study