pd.rolling_mean becoming deprecated - alternatives for ndarrays
<p>EDIT: This question was asked in 2016 and similar questions have been posted on SO years later after the functionality was finally removed, e.g. <a href="https://stackoverflow.com/questions/50482884/module-pandas-has-no-attribute-rolling-mean">module &#39;pandas&#39; has no attribute &#39;rolling_mean&#39;</a></p>
<p>However, the question concerns performance of the new <code>pd.rolling.mean()</code> and should stay open until the associated pandas <a href="https://github.com/pandas-dev/pandas/issues/12732" rel="nofollow noreferrer">issue</a> is fixed.</p>
<hr />
<p>It looks like <code>pd.rolling_mean</code> is becoming deprecated for <code>ndarrays</code>,</p>
<blockquote>
<pre><code> pd.rolling_mean(x, window=2, center=False)
</code></pre>
<p>FutureWarning: pd.rolling_mean is deprecated for ndarrays and will be removed in a future version</p>
</blockquote>
<p>but it seems to be the fastest way of doing this, according to <a href="https://stackoverflow.com/questions/13728392/moving-average-or-running-mean">this SO answer</a>.</p>
<p>Are there now new ways of doing this directly with SciPy or NumPy that are as fast as <code>pd.rolling_mean</code>?</p>