How can i create a list which would log the symbols for each symbol warning ?
Everytime I execute data = web.DataReader(ticker, 'yahoo', start, end)
i get symbol warnings, i want to create a list of symbols which i got the warning for how can i do that?
SymbolWarning: Failed to read symbol: 'BRK.B', replacing with NaN.
warnings.warn(msg.format(sym), SymbolWarning)
Full code :
start = datetime.date(2008,11,1)
end = datetime.date.today()
# df = web.get_data_yahoo(tickers, start, end)
df = web.DataReader(tickers, 'yahoo', start, end)
It looks like yahoo in your case is rejecting requests after a set limit.