Spaces:
Running
Running
James McCool
commited on
Commit
·
0c8bae5
1
Parent(s):
efb946c
Add data display for team and player initialization in app.py
Browse filesThis update introduces the display of initialized team and player data using st.write() after data loading. This enhancement improves user feedback by providing immediate visibility of the loaded data, facilitating better understanding and debugging during simulations.
app.py
CHANGED
@@ -601,8 +601,10 @@ if st.button("Load/Reset Data", key='reset1'):
|
|
601 |
if st.button("Run"):
|
602 |
if data_type == "Team":
|
603 |
team_data, opp_boost, results_dict = init_team_data(game_count, selected_team, selected_opponent, win_loss_settings, kill_predictions, death_predictions, start_date, end_date)
|
|
|
604 |
else:
|
605 |
team_data, opp_boost, results_dict = init_player_data(game_count, selected_players, selected_opponent, win_loss_settings, kill_predictions, death_predictions, start_date, end_date)
|
|
|
606 |
|
607 |
player_summary = pd.DataFrame()
|
608 |
for game_num in range(game_count):
|
|
|
601 |
if st.button("Run"):
|
602 |
if data_type == "Team":
|
603 |
team_data, opp_boost, results_dict = init_team_data(game_count, selected_team, selected_opponent, win_loss_settings, kill_predictions, death_predictions, start_date, end_date)
|
604 |
+
st.write(team_data)
|
605 |
else:
|
606 |
team_data, opp_boost, results_dict = init_player_data(game_count, selected_players, selected_opponent, win_loss_settings, kill_predictions, death_predictions, start_date, end_date)
|
607 |
+
st.write(team_data)
|
608 |
|
609 |
player_summary = pd.DataFrame()
|
610 |
for game_num in range(game_count):
|