I am creating a stock exchange monitor in python, and have had problems with the pandas_datareader module. The original module in the code was pandas.io.data, but an amendment has been made as pandas no longer supports this module. Here is the code;
import pandas as pd
import pandas_datareader as web
import datetime
start = datetime.datetime(2016, 1, 1)
end = datetime.date.today()
apple = web.DataReader("AAPL", "yahoo", start, end)
type(apple)
This code comes with the error;
Traceback (most recent call last):
File "/Users/euanoflynn/anaconda/tests/Tests.py", line 2, in <module>
import pandas_datareader as web # Package and modules for importing data; this code may change depending on pandas version
ModuleNotFoundError: No module named 'pandas_datareader'
I feel like I'm doing something wrong.
I can post more information if need be.
pip show pandas_datareader File "<ipython-input-2-155e3cc1be26>", line 1 pip show pandas_datareader ^ SyntaxError: invalid syntax1
– Cyma