Spaces:
Running
Running
File size: 275 Bytes
cafdd88 | 1 2 3 4 5 6 7 8 9 10 | import yfinance as yf
tickers = ["AAPL", "MSFT"]
data = yf.download(tickers, start="2024-01-01", progress=False)
print("Columns:", data.columns)
try:
print(data['Adj Close'].head())
except Exception as e:
print("Error accessing Adj Close:", e)
print(data.head())
|