gpt4 book ai didi

python-3.x - pandas.tools在哪里

转载 作者:行者123 更新时间:2023-12-03 23:25:44 25 4
gpt4 key购买 nike

安装pandas之后:

idf:~/Documents/python/plot$ pip3 install pandas --user
Collecting pandas
Using cached https://files.pythonhosted.org/packages/f9/e1/4a63ed31e1b1362d40ce845a5735c717a959bda992669468dae3420af2cd/pandas-0.24.0-cp36-cp36m-manylinux1_x86_64.whl
Requirement already satisfied: numpy>=1.12.0 in /home/idf/.local/lib/python3.6/site-packages (from pandas) (1.15.4)
Requirement already satisfied: pytz>=2011k in /home/idf/.local/lib/python3.6/site-packages (from pandas) (2018.7)
Requirement already satisfied: python-dateutil>=2.5.0 in /home/idf/.local/lib/python3.6/site-packages (from pandas) (2.7.5)
Requirement already satisfied: six>=1.5 in /home/idf/.local/lib/python3.6/site-packages (from python-dateutil>=2.5.0->pandas) (1.12.0)
zipline 1.3.0 has requirement pandas<=0.22,>=0.18.1, but you'll have pandas 0.24.0 which is incompatible.
Installing collected packages: pandas
Successfully installed pandas-0.24.0
idf:~/Documents/python/plot$

我尝试加载 pandas.tools
from pandas.tools.plotting import autocorrelation_plot

ModuleNotFoundError Traceback (most recent call last)
<ipython-input-52-e11ce94b8d5d> in <module>
----> 1 from pandas.tools.plotting import autocorrelation_plot


ModuleNotFoundError: No module named 'pandas.tools'

如何访问 pandas.tools

最佳答案

软件包pandas.tools.plotting已移动到this commit中的pandas.plotting中,作为Pandas 0.20.0#16005#12548的一部分。

最近,在Pandas 0.24.0中发布的Pandas的this commit中,删除了已弃用的pandas.tools程序包,该程序包以前允许pandas.tools.plotting继续工作。

如此,一旦允许Pandas升级到0.24.0或更高版本,您将需要替换从pandas.tools.plotting导入的内容,而不是从pandas.plotting导入的内容。

关于python-3.x - pandas.tools在哪里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54473018/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com