ynhe commited on
Commit
b2161db
·
verified ·
1 Parent(s): 88a5dbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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['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
 
 
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