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