Multichem commited on
Commit
a2dcfb8
·
verified ·
1 Parent(s): 02c26df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -203,9 +203,9 @@ def convert_df_to_csv(df):
203
  hitter_gamelog_table, pitcher_gamelog_table, timestamp = init_baselines()
204
  t_stamp = f"Updated through: " + str(timestamp) + f" CST"
205
 
206
- basic_cols = ['Player', 'Team']
207
 
208
- basic_season_cols = ['Player', 'Team']
209
 
210
  hitter_data_cols = ['G', 'AB', 'PA', 'H', '1B', '2B', '3B', 'HR', 'R', 'RBI', 'BB', 'IBB', 'SO', 'HBP', 'SF', 'SH',
211
  'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%']
@@ -336,7 +336,7 @@ with tab1:
336
 
337
  bottom_menu = st.columns((4, 1, 1))
338
  with bottom_menu[2]:
339
- batch_size = st.selectbox("Page Size", options=[25, 50, 100])
340
  with bottom_menu[1]:
341
  total_pages = (
342
  int(len(gamelog_data) / batch_size) if int(len(gamelog_data) / batch_size) > 0 else 1
@@ -461,7 +461,7 @@ with tab2:
461
 
462
  bottom_menu = st.columns((4, 1, 1))
463
  with bottom_menu[2]:
464
- batch_size = st.selectbox("Page Size", options=[25, 50, 100])
465
  with bottom_menu[1]:
466
  total_pages = (
467
  int(len(gamelog_data) / batch_size) if int(len(gamelog_data) / batch_size) > 0 else 1
 
203
  hitter_gamelog_table, pitcher_gamelog_table, timestamp = init_baselines()
204
  t_stamp = f"Updated through: " + str(timestamp) + f" CST"
205
 
206
+ basic_cols = ['Player', 'Team', 'Date']
207
 
208
+ basic_season_cols = ['Player', 'Team', 'Date']
209
 
210
  hitter_data_cols = ['G', 'AB', 'PA', 'H', '1B', '2B', '3B', 'HR', 'R', 'RBI', 'BB', 'IBB', 'SO', 'HBP', 'SF', 'SH',
211
  'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%']
 
336
 
337
  bottom_menu = st.columns((4, 1, 1))
338
  with bottom_menu[2]:
339
+ batch_size = st.selectbox("Page Size", options=[25, 50, 100], key='hitter_pagination')
340
  with bottom_menu[1]:
341
  total_pages = (
342
  int(len(gamelog_data) / batch_size) if int(len(gamelog_data) / batch_size) > 0 else 1
 
461
 
462
  bottom_menu = st.columns((4, 1, 1))
463
  with bottom_menu[2]:
464
+ batch_size = st.selectbox("Page Size", options=[25, 50, 100], key='pitcher_pagination')
465
  with bottom_menu[1]:
466
  total_pages = (
467
  int(len(gamelog_data) / batch_size) if int(len(gamelog_data) / batch_size) > 0 else 1