[英]AttributeError: module 'pandas' has no attribute 'ewmstd'
I get the error message: AttributeError: module 'pandas' has no attribute 'ewmstd'
我收到错误消息:
AttributeError: module 'pandas' has no attribute 'ewmstd'
I have seen exactly the same issue for the EWM function
in a previous stackoverflow post with the solution as follows:我在之前的 stackoverflow 帖子中看到了与
EWM function
完全相同的问题,解决方案如下:
df = pd.ewm(halflife=0.5).mean()
I therefore replicate exactly the same solution (which works for ewm ) aside from replacing ewm
with ewmstd
as follows:因此,除了用
ewmstd
替换ewm
之外,我复制了完全相同的解决方案(适用于ewm ),如下所示:
df = pd.ewmstd(halflife=0.5).mean()
However, i get the same error message.但是,我收到相同的错误消息。 I also try different variants, but get the same error.
我也尝试了不同的变体,但得到了同样的错误。
Have i called the function incorrectly or how does one call it?我是否错误地调用了 function 或者如何调用它? (i use the docs from here: https://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.ewmstd.html
(我使用这里的文档: https://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.ewmstd.html
I have used df = pd.ewm(halflife=0.5).std()
which yields results on the DataFrame.我使用了
df = pd.ewm(halflife=0.5).std()
在 DataFrame 上产生结果。 Might i expect this to provide the same output?我可能希望这提供相同的 output 吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.