Commit ·
078b81c
1
Parent(s): 7c475e4
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,7 @@ def usatt_rating_analyzer(file_obj):
|
|
| 28 |
highest_rated_opponent = mp.make_df_columns_readable(mp.get_highest_rated_opponent(df), is_tournament)
|
| 29 |
rating_over_time_fig = mp.get_rating_over_time_fig(df, is_tournament)
|
| 30 |
match_with_longest_game = mp.make_df_columns_readable(mp.get_match_with_longest_game(df, is_tournament), is_tournament)
|
|
|
|
| 31 |
opponent_rating_distr_fig = mp.get_opponent_rating_distr_fig(df)
|
| 32 |
opponent_rating_dist_over_time_fig = mp.get_opponent_rating_dist_over_time_fig(df, is_tournament)
|
| 33 |
|
|
@@ -48,6 +49,7 @@ def usatt_rating_analyzer(file_obj):
|
|
| 48 |
most_frequent_opponents,
|
| 49 |
highest_rated_opponent,
|
| 50 |
match_with_longest_game,
|
|
|
|
| 51 |
opponent_name_word_cloud_fig,
|
| 52 |
competition_name_word_cloud_fig,
|
| 53 |
matches_per_competition_fig,
|
|
@@ -142,6 +144,7 @@ with gr.Blocks() as demo:
|
|
| 142 |
most_frequent_opponents_gdf = gr.Dataframe(label="Most frequent opponents", max_rows=5)
|
| 143 |
highest_rated_opponent_gdf = gr.Dataframe(label="Highest rated opponent", max_rows=1)
|
| 144 |
match_longest_game_gdf = gr.Dataframe(label="Match with longest game", max_rows=1)
|
|
|
|
| 145 |
|
| 146 |
with gr.Row():
|
| 147 |
with gr.Column():
|
|
@@ -171,6 +174,7 @@ with gr.Blocks() as demo:
|
|
| 171 |
most_frequent_opponents_gdf,
|
| 172 |
highest_rated_opponent_gdf,
|
| 173 |
match_longest_game_gdf,
|
|
|
|
| 174 |
opponent_names_plot,
|
| 175 |
comp_names_plot,
|
| 176 |
matches_per_comp_plot,
|
|
|
|
| 28 |
highest_rated_opponent = mp.make_df_columns_readable(mp.get_highest_rated_opponent(df), is_tournament)
|
| 29 |
rating_over_time_fig = mp.get_rating_over_time_fig(df, is_tournament)
|
| 30 |
match_with_longest_game = mp.make_df_columns_readable(mp.get_match_with_longest_game(df, is_tournament), is_tournament)
|
| 31 |
+
longest_match = mp.make_df_columns_readable(mp.get_longest_match(df, is_tournament), is_tournament)
|
| 32 |
opponent_rating_distr_fig = mp.get_opponent_rating_distr_fig(df)
|
| 33 |
opponent_rating_dist_over_time_fig = mp.get_opponent_rating_dist_over_time_fig(df, is_tournament)
|
| 34 |
|
|
|
|
| 49 |
most_frequent_opponents,
|
| 50 |
highest_rated_opponent,
|
| 51 |
match_with_longest_game,
|
| 52 |
+
longest_match,
|
| 53 |
opponent_name_word_cloud_fig,
|
| 54 |
competition_name_word_cloud_fig,
|
| 55 |
matches_per_competition_fig,
|
|
|
|
| 144 |
most_frequent_opponents_gdf = gr.Dataframe(label="Most frequent opponents", max_rows=5)
|
| 145 |
highest_rated_opponent_gdf = gr.Dataframe(label="Highest rated opponent", max_rows=1)
|
| 146 |
match_longest_game_gdf = gr.Dataframe(label="Match with longest game", max_rows=1)
|
| 147 |
+
longest_match_gdf = gr.Dataframe(label="Longest match (highest number of points played)", max_rows=1)
|
| 148 |
|
| 149 |
with gr.Row():
|
| 150 |
with gr.Column():
|
|
|
|
| 174 |
most_frequent_opponents_gdf,
|
| 175 |
highest_rated_opponent_gdf,
|
| 176 |
match_longest_game_gdf,
|
| 177 |
+
longest_match_gdf,
|
| 178 |
opponent_names_plot,
|
| 179 |
comp_names_plot,
|
| 180 |
matches_per_comp_plot,
|