TypeError: Argument has incorrect type (expected numpy.ndarray, got DataFrame) 解决方案
原文中文,约1300字,阅读约需4分钟。发表于: 。在conda环境中升级软件包后,talib无法接受DataFrame作为输入,错误信息如下所示:TypeError: Argument 'xxx' has incorrect type (expected numpy.ndarray, got DataFrame): Traceback (most recent call last): File "/data/1.py", line...
在conda环境中,升级yfinance后,talib无法接受DataFrame作为输入,导致错误。降级yfinance至0.2.44后,talib和pandas恢复正常。