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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -313,7 +313,8 @@ with tab5:
313
 
314
  if st.button('Simulate Prop Category'):
315
  with col2:
316
-
 
317
  with df_hold_container.container():
318
 
319
  if prop_type_var == "points":
@@ -331,7 +332,7 @@ with tab5:
331
  prop_df = prop_df.loc[prop_df['prop_type'] == 'rebounds']
332
  prop_df = prop_df[['Player', 'over_prop', 'over_line', 'under_line']]
333
  prop_df.rename(columns={"over_prop": "Prop"}, inplace = True)
334
- # prop_df = prop_df.loc[prop_df['Prop'] != 0]
335
  st.table(prop_df)
336
  prop_df['Over'] = np.where(prop_df['over_line'] < 0, (-(prop_df['over_line'])/((-(prop_df['over_line']))+101)), 101/(prop_df['over_line']+101))
337
  prop_df['Under'] = np.where(prop_df['under_line'] < 0, (-(prop_df['under_line'])/((-(prop_df['under_line']))+101)), 101/(prop_df['under_line']+101))
@@ -469,7 +470,6 @@ with tab5:
469
 
470
  with df_hold_container:
471
  df_hold_container = st.empty()
472
- st.table(prop_frame)
473
  st.dataframe(final_outcomes.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
474
  with export_container:
475
  export_container = st.empty()
 
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":
 
332
  prop_df = prop_df.loc[prop_df['prop_type'] == 'rebounds']
333
  prop_df = prop_df[['Player', 'over_prop', 'over_line', 'under_line']]
334
  prop_df.rename(columns={"over_prop": "Prop"}, inplace = True)
335
+ prop_df = prop_df.loc[prop_df['Prop'] != 0]
336
  st.table(prop_df)
337
  prop_df['Over'] = np.where(prop_df['over_line'] < 0, (-(prop_df['over_line'])/((-(prop_df['over_line']))+101)), 101/(prop_df['over_line']+101))
338
  prop_df['Under'] = np.where(prop_df['under_line'] < 0, (-(prop_df['under_line'])/((-(prop_df['under_line']))+101)), 101/(prop_df['under_line']+101))
 
470
 
471
  with df_hold_container:
472
  df_hold_container = st.empty()
 
473
  st.dataframe(final_outcomes.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
474
  with export_container:
475
  export_container = st.empty()