Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -490,7 +490,7 @@ def convert_scores_to_percentage(df):
|
|
490 |
valid_numeric_count = pd.to_numeric(df[column], errors='coerce').notna().sum()
|
491 |
if valid_numeric_count > 0:
|
492 |
df[column] = round(df[column] * 100,2)
|
493 |
-
df[
|
494 |
# df[column] = df[column].apply(lambda x: f"{x:05.2f}") + '%'
|
495 |
return df
|
496 |
|
|
|
490 |
valid_numeric_count = pd.to_numeric(df[column], errors='coerce').notna().sum()
|
491 |
if valid_numeric_count > 0:
|
492 |
df[column] = round(df[column] * 100,2)
|
493 |
+
df[column] = df[column].apply(lambda x: f"{x:05.2f}%" if pd.notna(x) else x)
|
494 |
# df[column] = df[column].apply(lambda x: f"{x:05.2f}") + '%'
|
495 |
return df
|
496 |
|