burtenshaw commited on
Commit
157452e
·
1 Parent(s): 28362c5

tidy up table

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -88,6 +88,11 @@ def load_submissions():
88
 
89
  return pd.DataFrame(leaderboard)
90
 
 
 
 
 
 
91
 
92
  with gr.Blocks() as demo:
93
  gr.Markdown("""
 
88
 
89
  return pd.DataFrame(leaderboard)
90
 
91
+ def sort_round_columns(df):
92
+ for column in df.columns:
93
+ if df[column].dtype == "float64":
94
+ df[column] = df[column].round(2)
95
+ return df.sort_values(by="Average ⬆️", ascending=False)
96
 
97
  with gr.Blocks() as demo:
98
  gr.Markdown("""