Upgrade version of Pandas

PythonPandas

Python Problem Overview


I am running Python on a Windows machine at the following path:

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.

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'.

Python Solutions


Solution 1 - Python

try

pip3 install --upgrade pandas

Solution 2 - Python

Simple Solution, just type the below:

conda update pandas 

Type this in your preferred shell (on Windows, use Anaconda Prompt as administrator).

Solution 3 - Python

Add your C:\WinPython-64bit-3.4.4.1\python_***\Scripts folder to your system PATH variable by doing the following:

  1. Select Start, select Control Panel. double click System, and select the Advanced tab.

  2. Click Environment Variables. ...

  3. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. ...

  4. Reopen Command prompt window

Solution 4 - Python

The easiest way to do that is to run the code in the Jupitar notebook

 !pip install -U pandas

If it gives an error message ((Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: Consider using the --user option or check the permissions.)) please add '--user' next the above code. as

!pip install -U pandas --user

Solution 5 - Python

According to an article on Medium, this will work:

install --upgrade pandas==1.0.0rc0

Solution 6 - Python

In my case, the problem was solved by doing

from pandas_datareader import data as pdr

import yfinance as yf
yf.pdr_override() # <== that's all it takes :-)

Solution 7 - Python

I simply ran conda cmd as admin then used

pip install --upgrade pandas

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStaceyView Question on Stackoverflow
Solution 1 - PythonTim SeedView Answer on Stackoverflow
Solution 2 - PythonGil BaggioView Answer on Stackoverflow
Solution 3 - PythonDmitry AndreevView Answer on Stackoverflow
Solution 4 - PythonS. MandalView Answer on Stackoverflow
Solution 5 - PythonKevin GaoView Answer on Stackoverflow
Solution 6 - PythonefueyoView Answer on Stackoverflow
Solution 7 - PythonUmar FarukView Answer on Stackoverflow