Get the App
SLTechnology News&Howtos  ›  Network Security  › 

At present, pandas_datareader prompts the solution that yahoo cannot download data.

Shulou Source: shulou.com Published: 2022-06-01 02:57:50 10月04日 Update

Pandas_datareader._utils.RemoteDataError: Unable to read URL: http://ichart.finance.yahoo.com/table.csv?f=2017&ignore=.csv&b=31&c=2016&g=d&a=11&d=4&s=INPX&e=16

Hint can not download yahoo data, looked through the information for a long time, found the answer on github. At present, 0.4.1 has not been released and can be temporarily resolved by the following methods.

See https://github.com/pydata/pandas-datareader/issues/315 for details

Here is an excerpt of the solution

For a temporary fix (until this PR gets merged), try:

Git clone https://github.com/rgkimball/pandas-datareader$ cd pandas-datareader$ git checkout fix-yahoo$ pip install-e.

On Python:

Import pandas_datareader as pdrprint (pdr.__version__) # Make sure it is' 0.4.1.

In operation

Import pandas_datareader as pdrpdr.get_data_yahoo ('AAPL')

As a result, the data can be downloaded successfully.

Tags: Data methods tips success can be passed answers results data run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info MariaDB vpn Docker