Feb-02-2023, 01:48 PM
Apparently this is a "known issue". After replacing the data source form yahoo to stooq. It worked fine.
import pandas_datareader.data as web start_date = datetime.datetime(2006, 1, 1) end_date = datetime.datetime(2016, 1, 1) #Bank of America bac = data.DataReader('BAC', 'stooq', start_date, end_date) bac.head()
Output:Open High Low Close Volume
Date
2015-12-31 14.7814 14.8325 14.6233 14.6233 5.417059e+07
2015-12-30 14.9473 14.9807 14.8070 14.8168 4.030734e+07
2015-12-29 14.9897 15.0780 14.9130 15.0131 5.251059e+07
2015-12-28 14.9630 14.9720 14.7539 14.8846 4.803435e+07
2015-12-24 15.0495 15.1035 14.9630 15.0063 3.380344e+07