Commit
·
8d76bf3
1
Parent(s):
1d11ffb
update latest data
Browse files- tabs/leaderboard_tab.py +5 -2
tabs/leaderboard_tab.py
CHANGED
@@ -75,11 +75,14 @@ def make_ranked(df: pd.DataFrame) -> pd.DataFrame:
|
|
75 |
# 重命名列名为简写形式
|
76 |
ranked = ranked.rename(columns=COLUMN_RENAME_MAP)
|
77 |
|
78 |
-
#
|
79 |
numeric_columns = ['overall', 'comp.', 'insight', 'inst.', 'read.', 'c.acc.', 'eff.c.']
|
80 |
for col in numeric_columns:
|
81 |
if col in ranked.columns:
|
82 |
-
|
|
|
|
|
|
|
83 |
|
84 |
# 为 Deep Research Agent 添加 HTML 格式(加粗 + 颜色)
|
85 |
ranked['model'] = ranked.apply(
|
|
|
75 |
# 重命名列名为简写形式
|
76 |
ranked = ranked.rename(columns=COLUMN_RENAME_MAP)
|
77 |
|
78 |
+
# 格式化数值列为两位小数,但跳过包含"-"的值
|
79 |
numeric_columns = ['overall', 'comp.', 'insight', 'inst.', 'read.', 'c.acc.', 'eff.c.']
|
80 |
for col in numeric_columns:
|
81 |
if col in ranked.columns:
|
82 |
+
# 只对数值进行round操作,保持"-"不变
|
83 |
+
ranked[col] = ranked[col].apply(
|
84 |
+
lambda x: round(float(x), 2) if x != "-" and pd.notna(x) else x
|
85 |
+
)
|
86 |
|
87 |
# 为 Deep Research Agent 添加 HTML 格式(加粗 + 颜色)
|
88 |
ranked['model'] = ranked.apply(
|