Python 升级版熊猫
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37954195/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Upgrade version of Pandas
提问by Stacey
I am running Python on a Windows machine at the following path:
我在以下路径的 Windows 机器上运行 Python:
C:\WinPython-64bit-3.4.4.1
I am trying to upgrade to the latest version of pandas (currently running '0.17.1') but am having problems.
我正在尝试升级到最新版本的 Pandas(当前运行的是“0.17.1”)但遇到了问题。
I have looked at previous posts and have tried on the command line using :
我看过以前的帖子,并尝试在命令行上使用:
c:/>pip install --upgrade pandas
but just got 'pip is not recognised as an internal or external command, operable program or batch file'
.
但刚刚得到'pip is not recognised as an internal or external command, operable program or batch file'
。
回答by Tim Seed
try
尝试
pip3 install --upgrade pandas
回答by Gil Baggio
Simple Solution, just type the below:
简单的解决方案,只需输入以下内容:
conda update pandas
Type this in your preferred shell (on Windows, use Anaconda Prompt).
在您喜欢的 shell 中输入它(在 Windows 上,使用 Anaconda Prompt)。
回答by Dmitry Andreev
Add your C:\WinPython-64bit-3.4.4.1\python_***\Scripts folder to your system PATH variable by doing the following:
通过执行以下操作,将 C:\WinPython-64bit-3.4.4.1\python_***\Scripts 文件夹添加到系统 PATH 变量中:
- Select Start, select Control Panel. double click System, and select the Advanced tab.
Click Environment Variables. ...
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. ...
- Reopen Command prompt window
- 选择开始,选择控制面板。双击系统,然后选择高级选项卡。
单击环境变量。...
在 Edit System Variable(或 New System Variable)窗口中,指定 PATH 环境变量的值。...
- 重新打开命令提示符窗口
回答by Kevin Gao
According to an article on Medium, this will work:
根据 Medium 上的一篇文章,这将起作用:
install --upgrade pandas==1.0.0rc0
install --upgrade pandas==1.0.0rc0
回答by qurat
I am new to learning data analysis in Python. I run following code but I receive an error message since last updating pandas:
我是 Python 中学习数据分析的新手。我运行以下代码,但自上次更新熊猫以来收到一条错误消息:
import pandas as pd
import pandas_profiling
data = pd.read_csv("C:/Users/Quratulain/Desktop/panel_data_1.csv")
data.head()
profile = pandas_profiling.ProfileReport(data)
Error message:
错误信息:
TypeError: concat() got an unexpected keyword argument 'join_axes'
类型错误:concat() 得到了一个意外的关键字参数“join_axes”