import yahoo_fin.stock_info as ya code example Example: import stock data from yahoo finance pip install pandas-datareader