Update app.py
Browse files
app.py
CHANGED
@@ -192,9 +192,9 @@ with demo:
|
|
192 |
|
193 |
print(type(leaderboard_df[shown_columns.value]))
|
194 |
print(leaderboard_df[shown_columns.value]["Rank"])
|
195 |
-
leaderboard_df["Rank"] = leaderboard_df['Rank'].astype(str).apply(lambda x: 'NA' if x[
|
196 |
-
leaderboard_df["LowSR-Rank"] = leaderboard_df['LowSR-Rank'].astype(str).apply(lambda x: 'NA' if x[
|
197 |
-
leaderboard_df["HighSR-Rank"] = leaderboard_df['HighSR-Rank'].astype(str).apply(lambda x: 'NA' if x[
|
198 |
|
199 |
leaderboard_table = gr.components.Dataframe(
|
200 |
value=leaderboard_df[
|
|
|
192 |
|
193 |
print(type(leaderboard_df[shown_columns.value]))
|
194 |
print(leaderboard_df[shown_columns.value]["Rank"])
|
195 |
+
leaderboard_df["Rank"] = leaderboard_df['Rank'].astype(str).apply(lambda x: 'NA' if x[1:-1] == '-1' else f'{int(x[1:-1]):03d}' if x[1:-1].isdigit() else x[1:-1])
|
196 |
+
leaderboard_df["LowSR-Rank"] = leaderboard_df['LowSR-Rank'].astype(str).apply(lambda x: 'NA' if x[1:-1] == '-1' else f'{int(x[1:-1]):03d}' if x[1:-1].isdigit() else x[1:-1])
|
197 |
+
leaderboard_df["HighSR-Rank"] = leaderboard_df['HighSR-Rank'].astype(str).apply(lambda x: 'NA' if x[1:-1] == '-1' else f'{int(x[1:-1]):03d}' if x[1:-1].isdigit() else x[1:-1])
|
198 |
|
199 |
leaderboard_table = gr.components.Dataframe(
|
200 |
value=leaderboard_df[
|