Two digits of precision
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def update_table(selected_languages):
|
|
64 |
return pd.DataFrame({'Model': [get_friendly_name(model) for model in models]})
|
65 |
|
66 |
display_data = pivot[selected_languages].replace(np.nan, "-")
|
67 |
-
display_data = display_data.applymap(lambda x: f"{x:.
|
68 |
|
69 |
# Add the Model column as the first column
|
70 |
display_data.insert(0, 'Model', [get_friendly_name(model) for model in display_data.index])
|
|
|
64 |
return pd.DataFrame({'Model': [get_friendly_name(model) for model in models]})
|
65 |
|
66 |
display_data = pivot[selected_languages].replace(np.nan, "-")
|
67 |
+
display_data = display_data.applymap(lambda x: f"{x:.2f}" if isinstance(x, (int, float)) else x)
|
68 |
|
69 |
# Add the Model column as the first column
|
70 |
display_data.insert(0, 'Model', [get_friendly_name(model) for model in display_data.index])
|