data=yf.download(ticker,period='5y',auto_adjust=False)
gives you 'Adj Close' and 'Close', otherwise 'Close' is auto adjusted.