pandas-datareader
pandas-datareader copied to clipboard
fix exception for no data with `YahooDailyReader`
addresses issue when data are not found in requested page, to reproduce:
import pandas_datareader.data as web
# Fetch stock data using pandas_datareader
def fetch_stock_data(symbol='AAPL', start_date='2020-01-01', end_date='2021-01-01'):
df = web.DataReader(symbol, 'yahoo', start_date, end_date)
return df['Close'].values
print(fetch_stock_data())
cc: @bashtage