I have a dataframe as below:
data = pd.DataFrame({'Date':['20191001','20191002','20191003','20191004','20191005','20191006','20191001','20191002','20191003','20191004','20191005','20191006'],'Store':['A','A','A','A','A','A','B','B','B','B','B','B'],'Sale':[1,2,8,6,9,0,4,3,0,2,3,7]})
what I want to do is to calculate moving average for each store for 2 previous days (window size = 2) and put the value in a new column (let's say 'MA'), but the problem is that I want this window rolls over the actual sale and the previous calculated MA. the below image is the explanation:

Sorry that I had to articulate my issue with picture :|
I know I have to group by store and I can use the rolling(2) but the method would calculate the moving average on one column only.
My original window is 15 and the above is just an example.
Any help is kindly appreciated.
