zhiminy commited on
Commit
abec366
·
1 Parent(s): 24d120e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -434,6 +434,9 @@ def get_leaderboard_data():
434
  leaderboard_data["Rank"] = (
435
  leaderboard_data["Elo Score"].rank(ascending=False).astype(int)
436
  )
 
 
 
437
  except:
438
  # If no feedback exists, return an empty DataFrame
439
  return pd.DataFrame(
 
434
  leaderboard_data["Rank"] = (
435
  leaderboard_data["Elo Score"].rank(ascending=False).astype(int)
436
  )
437
+
438
+ # Place rank in the first column
439
+ leaderboard_data = leaderboard_data[["Rank"] + [col for col in leaderboard_data.columns if col != "Rank"]]
440
  except:
441
  # If no feedback exists, return an empty DataFrame
442
  return pd.DataFrame(