Multichem commited on
Commit
33c2a96
·
verified ·
1 Parent(s): 0755ee3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -254,12 +254,12 @@ with col2:
254
  pitcher_stats = RHH_load()
255
  pitcher_stats = pitcher_stats[pitcher_stats['Team'].isin(sp_var1)]
256
  pitcher_stats = pitcher_stats.set_index('Names')
257
- st.dataframe(pitcher_stats.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r', subset=['Opp RHH', 'Salary', 'BB%', 'True AVG', 'xSLG', 'xBA', 'Hits', 'Homeruns', 'xHRs']).background_gradient(cmap='RdYlGn', subset='K%').format(SP_format, precision=2), use_container_width = True)
258
  elif stat_var1 == 'Stats vs. LHH':
259
  pitcher_stats = LHH_load()
260
  pitcher_stats = pitcher_stats[pitcher_stats['Team'].isin(sp_var1)]
261
  pitcher_stats = pitcher_stats.set_index('Names')
262
- st.dataframe(pitcher_stats.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r', subset=['Opp LHH', 'Salary', 'BB%', 'True AVG', 'xSLG', 'xBA', 'Hits', 'Homeruns', 'xHRs']).background_gradient(cmap='RdYlGn', subset='K%').format(SP_format, precision=2), use_container_width = True)
263
  elif stat_var1 == 'Full League Stats':
264
  pitcher_stats = Full_Stats_load()
265
  st.dataframe(pitcher_stats.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r').background_gradient(cmap='RdYlGn', subset=['Strikeoutper', 'Strikeouts', 'PA']).format(precision=0).format(precision=3, subset = SP_league_format), use_container_width = True)
 
254
  pitcher_stats = RHH_load()
255
  pitcher_stats = pitcher_stats[pitcher_stats['Team'].isin(sp_var1)]
256
  pitcher_stats = pitcher_stats.set_index('Names')
257
+ st.dataframe(pitcher_stats.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r', subset=['Opp RHH', 'Salary', 'BB%', 'True AVG', 'xSLG', 'xBA', 'Hits', 'Homeruns', 'xHRs', 'xHR/PA']).background_gradient(cmap='RdYlGn', subset='K%').format(SP_format, precision=2), use_container_width = True)
258
  elif stat_var1 == 'Stats vs. LHH':
259
  pitcher_stats = LHH_load()
260
  pitcher_stats = pitcher_stats[pitcher_stats['Team'].isin(sp_var1)]
261
  pitcher_stats = pitcher_stats.set_index('Names')
262
+ st.dataframe(pitcher_stats.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r', subset=['Opp LHH', 'Salary', 'BB%', 'True AVG', 'xSLG', 'xBA', 'Hits', 'Homeruns', 'xHRs', 'xHR/PA']).background_gradient(cmap='RdYlGn', subset='K%').format(SP_format, precision=2), use_container_width = True)
263
  elif stat_var1 == 'Full League Stats':
264
  pitcher_stats = Full_Stats_load()
265
  st.dataframe(pitcher_stats.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r').background_gradient(cmap='RdYlGn', subset=['Strikeoutper', 'Strikeouts', 'PA']).format(precision=0).format(precision=3, subset = SP_league_format), use_container_width = True)