pd.rolling_mean becoming deprecated - alternatives for ndarrays

It looks like pd.rolling_mean is becoming deprecated for ndarrays, pd.rolling_mean(x, window=2, center=False) FutureWarning: pd.rolling_mean is deprecated for ndarrays and will be removed i...