Multichem commited on
Commit
e3f7150
1 Parent(s): 20fbd81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -137,9 +137,9 @@ with tab3:
137
  elif split_var5 == 'All':
138
  team_var5 = player_stats.Team.values.tolist()
139
  prop_type_var2 = st.selectbox('Select type of prop are you wanting to view', options = prop_table_options)
140
- prop_frame = prop_frame[prop_frame['Team'].isin(team_var5)]
141
- prop_frame = prop_frame[prop_frame['prop_type'] == prop_type_var2]
142
- prop_frame_disp = prop_frame.set_index('Player')
143
  prop_frame_disp = prop_frame_disp.sort_values(by='Trending Over', ascending=False)
144
  st.dataframe(prop_frame_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(prop_format, precision=2), use_container_width = True)
145
  st.download_button(
@@ -313,8 +313,6 @@ with tab5:
313
 
314
  if st.button('Simulate Prop Category'):
315
  with col2:
316
- with st.container():
317
- st.table(prop_frame)
318
  with df_hold_container.container():
319
 
320
  if prop_type_var == "points":
 
137
  elif split_var5 == 'All':
138
  team_var5 = player_stats.Team.values.tolist()
139
  prop_type_var2 = st.selectbox('Select type of prop are you wanting to view', options = prop_table_options)
140
+ prop_frame_disp = prop_frame[prop_frame['Team'].isin(team_var5)]
141
+ prop_frame_disp = prop_frame_disp[prop_frame_disp['prop_type'] == prop_type_var2]
142
+ prop_frame_disp = prop_frame_disp.set_index('Player')
143
  prop_frame_disp = prop_frame_disp.sort_values(by='Trending Over', ascending=False)
144
  st.dataframe(prop_frame_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(prop_format, precision=2), use_container_width = True)
145
  st.download_button(
 
313
 
314
  if st.button('Simulate Prop Category'):
315
  with col2:
 
 
316
  with df_hold_container.container():
317
 
318
  if prop_type_var == "points":