Multichem commited on
Commit
c5eab01
·
1 Parent(s): d191b0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -122,9 +122,11 @@ with tab2:
122
  team_var1 = raw_baselines.Team.values.tolist()
123
 
124
  with col2:
 
125
  display_container = st.empty()
126
  display_dl_container = st.empty()
127
  hold_container = st.empty()
 
128
  if st.button('Simulate appropriate pivots'):
129
  with hold_container:
130
  if site_var1 == 'Draftkings':
@@ -222,7 +224,12 @@ with tab2:
222
  st.session_state.final_Proj = final_Proj
223
 
224
  hold_container = st.empty()
225
-
 
 
 
 
 
226
  with display_container:
227
  display_container = st.empty()
228
  if 'final_Proj' in st.session_state:
 
122
  team_var1 = raw_baselines.Team.values.tolist()
123
 
124
  with col2:
125
+ proj_container = st.empty()
126
  display_container = st.empty()
127
  display_dl_container = st.empty()
128
  hold_container = st.empty()
129
+ st.session_state.proj_display == raw_baselines.copy()
130
  if st.button('Simulate appropriate pivots'):
131
  with hold_container:
132
  if site_var1 == 'Draftkings':
 
224
  st.session_state.final_Proj = final_Proj
225
 
226
  hold_container = st.empty()
227
+
228
+ with proj_container:
229
+ proj_container = st.empty()
230
+ if 'proj_display' in st.session_state:
231
+ st.dataframe(st.session_state.proj_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
232
+
233
  with display_container:
234
  display_container = st.empty()
235
  if 'final_Proj' in st.session_state: