Using yf and unable to import data for pg
I tried importing data from yahoo finance api with following code:
it worked but showed this error:
1 Failed download: - PG: No data found for this date range, symbol may be delisted
so instead i have downloaded TSLA and it starts from 2010.
hopefully this wont cause problem in long term.
run the below in the anconda prompt to install yfinance package
conda install -c conda-forge yfinance
THEN run the code this way;
import yfinance as yf
data = yf.download('PG', start = '1991-01-01')