I am not a math expert, but stahlous will explain what you need here .
I try to check it out:
import pandas as pd
ser = pd.Series([1,1,1], index=pd.date_range('1/1/2000', periods=3))
print ser
rm1 = pd.rolling_window(ser, window=[2,2,2], mean=False)
rm2 = pd.rolling_window(ser, window=[2,2,2])
print rm1
print rm2
I window ndarray ([2,2,2]) (rm1) (rm2).
pandas.rolling_window:
: int ndarray:
. , win_type
: boolean, True
True ,