Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
#10
by
reach-vb
HF staff
- opened
app.py
CHANGED
@@ -32,7 +32,10 @@ original_df = pd.read_csv(csv_results)
|
|
32 |
|
33 |
# Formats the columns
|
34 |
def formatter(x):
|
35 |
-
|
|
|
|
|
|
|
36 |
return x
|
37 |
|
38 |
for col in original_df.columns:
|
|
|
32 |
|
33 |
# Formats the columns
|
34 |
def formatter(x):
|
35 |
+
if type(x) == "str":
|
36 |
+
x = x
|
37 |
+
else:
|
38 |
+
x = round(x, 2)
|
39 |
return x
|
40 |
|
41 |
for col in original_df.columns:
|