Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def extract_financial_data(ticker_names:list[str])-> str:
|
|
| 28 |
stock_52w_change.append(current_ticker_info['52WeekChange'])
|
| 29 |
profitsMargins.append(current_ticker_info['profitMargins'])
|
| 30 |
|
| 31 |
-
df = pd.DataFrame([stock_52w_change, profitsMargins], columns=
|
| 32 |
return f"Insights on stock52 and profitmargin {df}"
|
| 33 |
|
| 34 |
except Exception as e:
|
|
|
|
| 28 |
stock_52w_change.append(current_ticker_info['52WeekChange'])
|
| 29 |
profitsMargins.append(current_ticker_info['profitMargins'])
|
| 30 |
|
| 31 |
+
df = pd.DataFrame([stock_52w_change, profitsMargins], columns=ticker_names, index=['52w change', 'profitMargins'])
|
| 32 |
return f"Insights on stock52 and profitmargin {df}"
|
| 33 |
|
| 34 |
except Exception as e:
|