Spaces:
Running
Running
Update pages/1_Fundamentals.py
Browse files- pages/1_Fundamentals.py +2 -1
pages/1_Fundamentals.py
CHANGED
@@ -51,7 +51,8 @@ def get_company_metrics(ticker):
|
|
51 |
|
52 |
def get_equity_gains(ticker, period):
|
53 |
sp = yf.Ticker(f"{ticker}")
|
54 |
-
sp_hist = sp.history(period=f'{period}d')
|
|
|
55 |
sp500 = sp_hist.reset_index()
|
56 |
|
57 |
todays_close = sp500.iloc[-1]
|
|
|
51 |
|
52 |
def get_equity_gains(ticker, period):
|
53 |
sp = yf.Ticker(f"{ticker}")
|
54 |
+
sp_hist = sp.history(period=f'{period}d')
|
55 |
+
print(sp_hist)#[['Close','Dividends']]
|
56 |
sp500 = sp_hist.reset_index()
|
57 |
|
58 |
todays_close = sp500.iloc[-1]
|