Data on yahoo_澳门葡京手机版app下载

fredb
2024-09-11T13:03:12.064Z
type:structured-message
www.uio.no

Unfortunately, it seems like Yahoo Finance is not very service-minded anymore when it comes to downloading data on their web-page. The data can be seen on the screen, but there is no easy way (if any way) to click on a "download"-button to get a csv-file. However, a python-solution is available, thanks to information from one of your student fellows Jonas Rike Myhre!

import yfinance as yf

import datetime as dt

start = dt.datetime(2022,9,4)

end = dt.datetime.now()

df=yf.download("AAPL",start,end)

df.to_csv("APPLE.csv")

In doing the exercises linked to the mandatory assignment, you are allowed to use other sources to get data, even older data sets are fine. But I recommend trying out the python code to get data.