singhsidhukuldeep commited on
Commit
8b6987d
·
verified ·
1 Parent(s): a6efc5f

Format metrics columns with commas

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -65,6 +65,8 @@ data = (
65
  data.index = np.arange(1, len(data) + 1)
66
  data.index.name = "Rank"
67
 
 
 
68
 
69
  def make_clickable(val):
70
  return f'<a target="_blank" href="https://huggingface.co/{val}">{val}</a>'
 
65
  data.index = np.arange(1, len(data) + 1)
66
  data.index.name = "Rank"
67
 
68
+ # Format metrics columns with commas
69
+ data[metrics] = data[metrics].applymap(lambda x: f"{x:,}")
70
 
71
  def make_clickable(val):
72
  return f'<a target="_blank" href="https://huggingface.co/{val}">{val}</a>'