I tried to run this code in pycharm:
import pandas as pd
import numpy as np
import datetime as dt
import pandas_datareader as web
start = dt.datetime.now()-dt.timedelta(days=365*3)
end = dt.datetime.now()
data=web.DataReader('AAPL', 'yahoo', start, end)
But it only gives errors, such as- "line 8, in data=web.DataReader('AAPL', 'yahoo', start, end)".
What is the problem?
Thanks in advance.
I tried to look for a solution from the internet, but found nothing.