Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,9 +53,9 @@ def get_stock(ticker: str):
|
|
| 53 |
# 但 earnings_estimate 通常是年度数据且按时间排序。
|
| 54 |
|
| 55 |
if len(est) > 0:
|
| 56 |
-
eps_est_current = est.iloc[
|
| 57 |
if len(est) > 1:
|
| 58 |
-
eps_est_next = est.iloc[
|
| 59 |
|
| 60 |
except Exception as e:
|
| 61 |
print(f"Error parsing dataframe: {e}")
|
|
|
|
| 53 |
# 但 earnings_estimate 通常是年度数据且按时间排序。
|
| 54 |
|
| 55 |
if len(est) > 0:
|
| 56 |
+
eps_est_current = est.iloc[2]['avg'] # 当前财年
|
| 57 |
if len(est) > 1:
|
| 58 |
+
eps_est_next = est.iloc[3]['avg'] # 下一财年
|
| 59 |
|
| 60 |
except Exception as e:
|
| 61 |
print(f"Error parsing dataframe: {e}")
|