KKKMatthias commited on
Commit
fb551cb
·
verified ·
1 Parent(s): a750ea9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[0]['avg'] # 当前财年
57
  if len(est) > 1:
58
- eps_est_next = est.iloc[1]['avg'] # 下一财年
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}")