Multichem commited on
Commit
5dfb317
·
verified ·
1 Parent(s): 189eaea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -317,6 +317,7 @@ with tab1:
317
  working_data = working_data[working_data['Player'].isin(player_var1)]
318
  season_long_table = hitter_seasonlong_build(working_data)
319
  season_long_table = season_long_table.set_index('Player')
 
320
  season_long_table_disp = season_long_table.reindex(disp_stats,axis="columns")
321
  display.dataframe(season_long_table_disp.style.format(precision=2), height=750, use_container_width = True)
322
  st.download_button(
@@ -442,6 +443,7 @@ with tab2:
442
  working_data = working_data[working_data['Player'].isin(sp_player_var1)]
443
  season_long_table = pitcher_seasonlong_build(working_data)
444
  season_long_table = season_long_table.set_index('Player')
 
445
  season_long_table_disp = season_long_table.reindex(disp_stats,axis="columns")
446
  display.dataframe(season_long_table_disp.style.format(precision=2), height=750, use_container_width = True)
447
  st.download_button(
 
317
  working_data = working_data[working_data['Player'].isin(player_var1)]
318
  season_long_table = hitter_seasonlong_build(working_data)
319
  season_long_table = season_long_table.set_index('Player')
320
+ season_long_table = season_long_table.drop(subset=['Player', 'Date'])
321
  season_long_table_disp = season_long_table.reindex(disp_stats,axis="columns")
322
  display.dataframe(season_long_table_disp.style.format(precision=2), height=750, use_container_width = True)
323
  st.download_button(
 
443
  working_data = working_data[working_data['Player'].isin(sp_player_var1)]
444
  season_long_table = pitcher_seasonlong_build(working_data)
445
  season_long_table = season_long_table.set_index('Player')
446
+ season_long_table = season_long_table.drop(subset=['Player', 'Date'])
447
  season_long_table_disp = season_long_table.reindex(disp_stats,axis="columns")
448
  display.dataframe(season_long_table_disp.style.format(precision=2), height=750, use_container_width = True)
449
  st.download_button(