Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -873,7 +873,7 @@ with tab2:
|
|
873 |
Contest_Size = 5000
|
874 |
elif contest_var1 == 'Large':
|
875 |
Contest_Size = 10000
|
876 |
-
linenum_var1 =
|
877 |
strength_var1 = st.selectbox("How sharp is the field in the contest?", ('Not Very', 'Average', 'Very'))
|
878 |
if strength_var1 == 'Not Very':
|
879 |
sharp_split = .33
|
@@ -1335,6 +1335,15 @@ with tab2:
|
|
1335 |
|
1336 |
with st.container():
|
1337 |
simulate_container = st.empty()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1338 |
st.dataframe(Sim_Winner_Frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Own']).format(precision=2), use_container_width = True)
|
1339 |
|
1340 |
st.download_button(
|
|
|
873 |
Contest_Size = 5000
|
874 |
elif contest_var1 == 'Large':
|
875 |
Contest_Size = 10000
|
876 |
+
linenum_var1 = 2500
|
877 |
strength_var1 = st.selectbox("How sharp is the field in the contest?", ('Not Very', 'Average', 'Very'))
|
878 |
if strength_var1 == 'Not Very':
|
879 |
sharp_split = .33
|
|
|
1335 |
|
1336 |
with st.container():
|
1337 |
simulate_container = st.empty()
|
1338 |
+
player_split_var2 = st.radio("Are you wanting to isolate any lineups with specific players?", ('Full Players', 'Specific Players'))
|
1339 |
+
if player_split_var2 == 'Specific Players':
|
1340 |
+
find_var2 = st.multiselect('Which players must be included in the lineups?', options = player_freq['Player'].unique())
|
1341 |
+
elif player_split_var2 == 'Full Players':
|
1342 |
+
find_var2 = static_exposure.Player.values.tolist()
|
1343 |
+
if player_split_var2 == 'Specific Players':
|
1344 |
+
Sim_Winner_Frame = Sim_Winner_Frame[np.equal.outer(Sim_Winner_Frame.to_numpy(copy=False), find_var2).any(axis=1).all(axis=1)]
|
1345 |
+
elif player_split_var2 == 'Full Players':
|
1346 |
+
Sim_Winner_Frame = Sim_Winner_Frame
|
1347 |
st.dataframe(Sim_Winner_Frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Own']).format(precision=2), use_container_width = True)
|
1348 |
|
1349 |
st.download_button(
|