Why can't I download monthly quotes from yahu? Interwal = 'm' - I tried several options and with additional packages - it does not work, this is the most logical yet, but it does not work. freq = 'W-WED' and others also do not go out.
import pandas as pd import pandas_datareader.data as wb tickers_fn = r'C:/Users/II/Downloads/1.txt' with open(tickers_fn) as f: stocklist = f.read().splitlines() p = wb.DataReader(stocklist, 'yahoo', '2007-01-01', interwal = 'm') for ticker in p.minor_axis: p.loc[:, :, ticker].dropna().to_csv('C:/Users/II/Downloads/{}_data.csv'.format(ticker))