singhsidhukuldeep
commited on
Format metrics columns with commas
Browse files
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>'
|