Spaces:
Running
Running
James McCool
commited on
Commit
·
c42b330
1
Parent(s):
5d37885
pushed updates to handle secondary slates
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ with tab1:
|
|
90 |
player_frame, line_frame, pp_frame, timestamp = player_stat_table()
|
91 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
92 |
site_var1 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var1')
|
93 |
-
main_var1 = st.radio("Main slate or secondary slate?", ('Main Slate', 'Secondary'), key='main_var1')
|
94 |
split_var1 = st.radio("Would you like to view the whole slate or just specific games?", ('Full Slate Run', 'Specific Games'), key='split_var1')
|
95 |
if split_var1 == 'Specific Games':
|
96 |
team_var1 = st.multiselect('Which teams would you like to include in the ROO?', options = player_frame['Team'].unique(), key='team_var1')
|
@@ -132,7 +132,7 @@ with tab2:
|
|
132 |
player_frame, line_frame, pp_frame, timestamp = player_stat_table()
|
133 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
134 |
site_var2 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var2')
|
135 |
-
main_var2 = st.radio("Main slate or secondary slate?", ('Main Slate', 'Secondary'), key='main_var2')
|
136 |
|
137 |
with col2:
|
138 |
final_line_combos = line_frame[line_frame['Site'] == str(site_var2)]
|
@@ -156,7 +156,7 @@ with tab3:
|
|
156 |
player_frame, line_frame, pp_frame, timestamp = player_stat_table()
|
157 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
158 |
site_var3 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var3')
|
159 |
-
main_var3 = st.radio("Main slate or secondary slate?", ('Main Slate', 'Secondary'), key='main_var3')
|
160 |
|
161 |
with col2:
|
162 |
final_pp_combos = pp_frame[pp_frame['Site'] == str(site_var3)]
|
|
|
90 |
player_frame, line_frame, pp_frame, timestamp = player_stat_table()
|
91 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
92 |
site_var1 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var1')
|
93 |
+
main_var1 = st.radio("Main slate or secondary slate?", ('Main Slate', 'Secondary Slate'), key='main_var1')
|
94 |
split_var1 = st.radio("Would you like to view the whole slate or just specific games?", ('Full Slate Run', 'Specific Games'), key='split_var1')
|
95 |
if split_var1 == 'Specific Games':
|
96 |
team_var1 = st.multiselect('Which teams would you like to include in the ROO?', options = player_frame['Team'].unique(), key='team_var1')
|
|
|
132 |
player_frame, line_frame, pp_frame, timestamp = player_stat_table()
|
133 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
134 |
site_var2 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var2')
|
135 |
+
main_var2 = st.radio("Main slate or secondary slate?", ('Main Slate', 'Secondary Slate'), key='main_var2')
|
136 |
|
137 |
with col2:
|
138 |
final_line_combos = line_frame[line_frame['Site'] == str(site_var2)]
|
|
|
156 |
player_frame, line_frame, pp_frame, timestamp = player_stat_table()
|
157 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
158 |
site_var3 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var3')
|
159 |
+
main_var3 = st.radio("Main slate or secondary slate?", ('Main Slate', 'Secondary Slate'), key='main_var3')
|
160 |
|
161 |
with col2:
|
162 |
final_pp_combos = pp_frame[pp_frame['Site'] == str(site_var3)]
|