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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -242,9 +242,9 @@ with tab1:
242
  hitter_gamelog_table, pitcher_gamelog_table, timestamp = init_baselines()
243
  t_stamp = f"Updated through: " + str(timestamp) + f" CST"
244
 
245
- basic_cols = ['Player', 'Team']
246
 
247
- basic_season_cols = ['Player', 'Team']
248
 
249
  hitter_data_cols = ['G', 'AB', 'PA', 'H', '1B', '2B', '3B', 'HR', 'R', 'RBI', 'BB', 'IBB', 'SO', 'HBP', 'SF', 'SH',
250
  'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%']
@@ -270,7 +270,7 @@ with tab1:
270
  total_pitchers = indv_pitchers.Player.values.tolist()
271
  total_dates = hitter_gamelog_table.Date.values.tolist()
272
 
273
- split_var1 = st.radio("What table would you like to view?", ('Season Logs', 'Gamelogs'), key='split_var1')
274
  split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var2')
275
 
276
  if split_var2 == 'Specific Teams':
@@ -367,9 +367,9 @@ with tab2:
367
  hitter_gamelog_table, pitcher_gamelog_table, timestamp = init_baselines()
368
  t_stamp = f"Updated through: " + str(timestamp) + f" CST"
369
 
370
- basic_cols = ['Player', 'Team']
371
 
372
- basic_season_cols = ['Player', 'Team']
373
 
374
  hitter_data_cols = ['G', 'AB', 'PA', 'H', '1B', '2B', '3B', 'HR', 'R', 'RBI', 'BB', 'IBB', 'SO', 'HBP', 'SF', 'SH',
375
  'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%']
@@ -395,7 +395,7 @@ with tab2:
395
  total_pitchers = indv_pitchers.Player.values.tolist()
396
  total_dates = hitter_gamelog_table.Date.values.tolist()
397
 
398
- sp_split_var1 = st.radio("What table would you like to view?", ('Season Logs', 'Gamelogs'), key='sp_split_var1')
399
  sp_split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='sp_split_var2')
400
 
401
  if sp_split_var2 == 'Specific Teams':
 
242
  hitter_gamelog_table, pitcher_gamelog_table, timestamp = init_baselines()
243
  t_stamp = f"Updated through: " + str(timestamp) + f" CST"
244
 
245
+ basic_cols = ['Player', 'Team', 'Date']
246
 
247
+ basic_season_cols = ['Player', 'Team', 'Date']
248
 
249
  hitter_data_cols = ['G', 'AB', 'PA', 'H', '1B', '2B', '3B', 'HR', 'R', 'RBI', 'BB', 'IBB', 'SO', 'HBP', 'SF', 'SH',
250
  'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%']
 
270
  total_pitchers = indv_pitchers.Player.values.tolist()
271
  total_dates = hitter_gamelog_table.Date.values.tolist()
272
 
273
+ split_var1 = st.radio("What table would you like to view?", ('Gamelogs', 'Season Logs'), key='split_var1')
274
  split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var2')
275
 
276
  if split_var2 == 'Specific Teams':
 
367
  hitter_gamelog_table, pitcher_gamelog_table, timestamp = init_baselines()
368
  t_stamp = f"Updated through: " + str(timestamp) + f" CST"
369
 
370
+ basic_cols = ['Player', 'Team', 'Date']
371
 
372
+ basic_season_cols = ['Player', 'Team', 'Date']
373
 
374
  hitter_data_cols = ['G', 'AB', 'PA', 'H', '1B', '2B', '3B', 'HR', 'R', 'RBI', 'BB', 'IBB', 'SO', 'HBP', 'SF', 'SH',
375
  'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%']
 
395
  total_pitchers = indv_pitchers.Player.values.tolist()
396
  total_dates = hitter_gamelog_table.Date.values.tolist()
397
 
398
+ sp_split_var1 = st.radio("What table would you like to view?", ('Gamelogs', 'Season Logs'), key='sp_split_var1')
399
  sp_split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='sp_split_var2')
400
 
401
  if sp_split_var2 == 'Specific Teams':