Error related to pandas datareader with jupyter notebook on mac

63 Views Asked by At

I am a french beginner in programming in python. When I want to import datas from yahoo finance i got this error :

`APPL = wb.DataReader('APPL', data_source = 'yahoo', start='2005-1-1')

here is the problem here is the problem Can you help me to resolve this ? Thank you

1

There are 1 best solutions below

0
Freda On

It might be caused by Yahoo Finance changing its API.

Try pip install yfiance module:

pip install yfinance

If you're using Google Colab:

!pip install yfinance

The following code works for me currently:

import yfinance as yf
data = yf.download("AAPL", start="2005-1-1")