ha251 commited on
Commit
c93fc19
·
verified ·
1 Parent(s): 7137760

Update miniapp_leaderboard.py

Browse files
Files changed (1) hide show
  1. miniapp_leaderboard.py +3 -6
miniapp_leaderboard.py CHANGED
@@ -69,12 +69,9 @@ def _load_df(prefix: str):
69
  df[c] = pd.to_numeric(df[c], errors="coerce")
70
 
71
  df = df.sort_values(by="avg", ascending=False)
72
-
73
- # ✅ 强制显示成 0.00(含尾随0)
74
- df[NUMERIC_COLS] = df[NUMERIC_COLS].applymap(
75
- lambda x: "" if pd.isna(x) else f"{x:.2f}"
76
- )
77
-
78
  return df[COLUMNS]
79
 
80
  def refresh():
 
69
  df[c] = pd.to_numeric(df[c], errors="coerce")
70
 
71
  df = df.sort_values(by="avg", ascending=False)
72
+
73
+ for c in NUMERIC_COLS:
74
+ df[c] = df[c].map(lambda x: "" if pd.isna(x) else f"{x:.2f}")
 
 
 
75
  return df[COLUMNS]
76
 
77
  def refresh():