Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def create_df_dict(lang, lang_cols):
|
|
47 |
leaderboard_df = pd.read_csv(f"{lang}_result.csv", names=lang_cols)
|
48 |
# leaderboard_df = leaderboard_df.sort_index(axis=1)
|
49 |
# Move 'key' column to the front
|
50 |
-
leaderboard_df = leaderboard_df[["
|
51 |
cols = leaderboard_df.columns
|
52 |
types = ["str"] + ["number"] * (len(lang_cols) - 1)
|
53 |
|
|
|
47 |
leaderboard_df = pd.read_csv(f"{lang}_result.csv", names=lang_cols)
|
48 |
# leaderboard_df = leaderboard_df.sort_index(axis=1)
|
49 |
# Move 'key' column to the front
|
50 |
+
leaderboard_df = leaderboard_df[["Team"] + [col for col in leaderboard_df.columns if col != "Team"]]
|
51 |
cols = leaderboard_df.columns
|
52 |
types = ["str"] + ["number"] * (len(lang_cols) - 1)
|
53 |
|