Last answered:

04 May 2024

Posted on:

19 May 2023

1

For those using yf(yfinance)

tickers = ['PG', 'MSFT', 'T', 'GE']
new_data = pd.DataFrame()
for t in tickers:
    new_data[t]=yf.download(t, start = '1995-01-01')['Adj Close']


new_data.head()




1 answers ( 0 marked as helpful)
Instructor
Posted on:

04 May 2024

0

Hi Richard!

Thanks for sharing this alternative with the Community!

As of now, we stick to working with data to teach the relevant principles of finance, but obtaining data with yfinance is an alternative way of obtaining online data.

Kind regards,
Martin

Submit an answer