Rolling Average

I’m new to Jupyter…I’m looking to create a rolling 12 average for a dataset. The data set has columns for MONTH, Facility, Patient Days.

I want to create a rolling 12 for Patient days but group by Facility. So for example, Facility X has monthly data with patient days, I want to calculate the rolling for 12 months by Facility X but not Facility Y which needs its own rolling 12.

That isn’t a question specific to Jupyter. Look at it this way, you’d have the same issue and post if you were working with Python in your terminal.

Maybe check out some of the top hits here? This one looks pretty recent.

1 Like