FutureWarning:moments.rolling_apply

时间:2019-07-09 13:54:38

标签: python pandas

有人可以帮助我将以下代码更改为新的pandas格式。我搜索了一个解决方案并尝试解决它,但是我没有得到。谢谢

from pandas.stats import moments
dn = 100 * moments.rolling_apply(pricelow, ndays + 1, lambda x: x.argmin()) / ndays
332: FutureWarning: pd.rolling_apply is deprecated for Series and will be removed in a future version, replace with 
        Series.rolling(window=30,center=False).apply(func=<function>,args=<tuple>,kwargs=<dict>)
  dn = 100 * moments.rolling_apply(pricelow, ndays + 1, lambda x: x.argmin()) / ndays

0 个答案:

没有答案