James McCool commited on
Commit
14d978b
·
1 Parent(s): dc7066d

Refactor variable naming in app.py for improved clarity. Changed 'game_num' to 'game_count' in the results dictionary iteration to better reflect its purpose. Minor formatting adjustment to remove unnecessary whitespace, enhancing code readability.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -354,7 +354,7 @@ if st.button("Run"):
354
  team_data, opp_boost, results_dict = init_team_data(selected_team, selected_opponent, win_loss_settings, kill_predictions, death_predictions, start_date, end_date)
355
 
356
  player_summary = pd.DataFrame()
357
- for game_num, game_df in results_dict.items():
358
  # Remove 'game X' from playernames if present
359
  clean_df = game_df.copy()
360
  clean_df['playername'] = clean_df['playername'].str.split(' game ').str[0]
@@ -461,6 +461,6 @@ if st.button("Run"):
461
  .style.format(precision=2),
462
  use_container_width=True
463
  )
464
-
465
  with tab3:
466
  st.dataframe(opp_boost.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
 
354
  team_data, opp_boost, results_dict = init_team_data(selected_team, selected_opponent, win_loss_settings, kill_predictions, death_predictions, start_date, end_date)
355
 
356
  player_summary = pd.DataFrame()
357
+ for game_count, game_df in results_dict.items():
358
  # Remove 'game X' from playernames if present
359
  clean_df = game_df.copy()
360
  clean_df['playername'] = clean_df['playername'].str.split(' game ').str[0]
 
461
  .style.format(precision=2),
462
  use_container_width=True
463
  )
464
+
465
  with tab3:
466
  st.dataframe(opp_boost.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)