James McCool commited on
Commit
e631d8e
·
1 Parent(s): 6c81ee5

Enhance tab layout for player and stack statistics in app.py: replace column layout with tabs for improved organization and user navigation, and adjust stack statistics condition for better data handling.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1208,7 +1208,7 @@ with tab2:
1208
  height=1000,
1209
  use_container_width=True
1210
  )
1211
- player_stats_col, stack_stats_col = st.columns(2)
1212
  with player_stats_col:
1213
 
1214
  player_stats = []
@@ -1315,7 +1315,7 @@ with tab2:
1315
  )
1316
 
1317
  with stack_stats_col:
1318
- if stack_dict is not None:
1319
  stack_stats = []
1320
  stack_columns = [col for col in display_frame.columns if col.startswith('Stack')]
1321
  for stack in stack_dict.values():
 
1208
  height=1000,
1209
  use_container_width=True
1210
  )
1211
+ player_stats_col, stack_stats_col = st.tabs(['Player Stats', 'Stack Stats'])
1212
  with player_stats_col:
1213
 
1214
  player_stats = []
 
1315
  )
1316
 
1317
  with stack_stats_col:
1318
+ if 'Stack' in display_frame.headers:
1319
  stack_stats = []
1320
  stack_columns = [col for col in display_frame.columns if col.startswith('Stack')]
1321
  for stack in stack_dict.values():