I use Yfinance to download historical prices and have found that the function returns different result each time. Is it an error or am I doing something wrong?
import yfinance as yf
msft = yf.Ticker('AAK.ST')
data_1 = msft.history(period="max")
data_2 = msft.history(period="max")
The result differs every time I run the code and below is an example where the first two rows differs but the third is equal.
There are a lot of rows that differs:
Any suggestions why, and how to handle this?