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.