Multichem commited on
Commit
ac87b72
·
verified ·
1 Parent(s): 83a1f7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -157,16 +157,6 @@ with col3:
157
  slate_teams = site_slates['FD Overall'].values.tolist()
158
  raw_baselines = load_fd_player_projections(all_fd_player_projections)
159
  raw_baselines = raw_baselines[raw_baselines['Team'].isin(slate_teams)]
160
- split_var1 = st.radio("Would you like to view the whole slate or just specific games?", ('Full Slate Run', 'Specific Games'), key='custom_split_var1')
161
- if split_var1 == 'Specific Games':
162
- team_var1 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='custom_team_var1')
163
- elif split_var1 == 'Full Slate Run':
164
- team_var1 = raw_baselines.Team.values.tolist()
165
- pos_split1 = st.radio("Are you viewing all positions, specific groups, or specific positions?", ('All Positions', 'Specific Positions'), key='custom_pos_split1')
166
- if pos_split1 == 'Specific Positions':
167
- pos_var1 = st.multiselect('What Positions would you like to view?', options = ['SP', 'P', 'C', '1B', '2B', '3B', 'SS', 'OF'])
168
- elif pos_split1 == 'All Positions':
169
- pos_var1 = 'All'
170
  if custom_var1 == 'Yes':
171
  contest_var1 = st.selectbox("What contest type are you running for?", ('Cash', 'Small Field GPP', 'Large Field GPP'), key='contest_var1')
172
  if slate_var1 == 'Main Slate':
@@ -366,7 +356,7 @@ elif custom_var1 == 'Yes':
366
  with hold_container:
367
  hold_container = st.empty()
368
  final_Proj = final_Proj
369
- st.dataframe(final_Proj.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), use_container_width = True)
370
 
371
  st.download_button(
372
  label="Export Tables",
 
157
  slate_teams = site_slates['FD Overall'].values.tolist()
158
  raw_baselines = load_fd_player_projections(all_fd_player_projections)
159
  raw_baselines = raw_baselines[raw_baselines['Team'].isin(slate_teams)]
 
 
 
 
 
 
 
 
 
 
160
  if custom_var1 == 'Yes':
161
  contest_var1 = st.selectbox("What contest type are you running for?", ('Cash', 'Small Field GPP', 'Large Field GPP'), key='contest_var1')
162
  if slate_var1 == 'Main Slate':
 
356
  with hold_container:
357
  hold_container = st.empty()
358
  final_Proj = final_Proj
359
+ st.dataframe(final_Proj.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), height=1000px, use_container_width = True)
360
 
361
  st.download_button(
362
  label="Export Tables",