Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -107,14 +107,14 @@ with tab2:
|
|
107 |
del st.session_state[key]
|
108 |
site_var2 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var2')
|
109 |
if site_var2 == 'Draftkings':
|
110 |
-
|
111 |
elif site_var2 == 'Fanduel':
|
112 |
-
|
113 |
slate_split = st.radio("Are you viewing the main slate or the secondary slate?", ('Main Slate', 'Secondary'), key='slate_split')
|
114 |
if slate_split == 'Main Slate':
|
115 |
-
raw_baselines =
|
116 |
elif slate_split == 'Secondary':
|
117 |
-
raw_baselines =
|
118 |
split_var2 = st.radio("Are you running the full slate or crtain games?", ('Full Slate Run', 'Specific Games'), key='split_var2')
|
119 |
if split_var2 == 'Specific Games':
|
120 |
team_var2 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var2')
|
@@ -164,19 +164,19 @@ with tab3:
|
|
164 |
site_var1 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var1')
|
165 |
if site_var1 == 'Draftkings':
|
166 |
if slate_var1 == 'User':
|
167 |
-
|
168 |
elif slate_var1 != 'User':
|
169 |
-
|
170 |
elif site_var1 == 'Fanduel':
|
171 |
if slate_var1 == 'User':
|
172 |
-
|
173 |
elif slate_var1 != 'User':
|
174 |
-
|
175 |
slate_split2 = st.radio("Are you viewing the main slate or the secondary slate?", ('Main Slate', 'Secondary'), key='slate_split2')
|
176 |
if slate_split2 == 'Main Slate':
|
177 |
-
raw_baselines =
|
178 |
elif slate_split2 == 'Secondary':
|
179 |
-
raw_baselines =
|
180 |
split_var1 = st.radio("Are you running the full slate or crtain games?", ('Full Slate Run', 'Specific Games'), key='split_var1')
|
181 |
if split_var1 == 'Specific Games':
|
182 |
team_var1 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var1')
|
|
|
107 |
del st.session_state[key]
|
108 |
site_var2 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var2')
|
109 |
if site_var2 == 'Draftkings':
|
110 |
+
site_baselines = roo_raw[roo_raw['Site'] == 'Draftkings']
|
111 |
elif site_var2 == 'Fanduel':
|
112 |
+
site_baselines = roo_raw[roo_raw['Site'] == 'Fanduel']
|
113 |
slate_split = st.radio("Are you viewing the main slate or the secondary slate?", ('Main Slate', 'Secondary'), key='slate_split')
|
114 |
if slate_split == 'Main Slate':
|
115 |
+
raw_baselines = site_baselines[site_baselines['Slate'] == 'Main Slate']
|
116 |
elif slate_split == 'Secondary':
|
117 |
+
raw_baselines = site_baselines[site_baselines['Slate'] == 'Secondary']
|
118 |
split_var2 = st.radio("Are you running the full slate or crtain games?", ('Full Slate Run', 'Specific Games'), key='split_var2')
|
119 |
if split_var2 == 'Specific Games':
|
120 |
team_var2 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var2')
|
|
|
164 |
site_var1 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var1')
|
165 |
if site_var1 == 'Draftkings':
|
166 |
if slate_var1 == 'User':
|
167 |
+
site_baselines = proj_dataframe
|
168 |
elif slate_var1 != 'User':
|
169 |
+
site_baselines = dk_raw
|
170 |
elif site_var1 == 'Fanduel':
|
171 |
if slate_var1 == 'User':
|
172 |
+
site_baselines = proj_dataframe
|
173 |
elif slate_var1 != 'User':
|
174 |
+
site_baselines = fd_raw
|
175 |
slate_split2 = st.radio("Are you viewing the main slate or the secondary slate?", ('Main Slate', 'Secondary'), key='slate_split2')
|
176 |
if slate_split2 == 'Main Slate':
|
177 |
+
raw_baselines = site_baselines[site_baselines['Slate'] == 'Main Slate']
|
178 |
elif slate_split2 == 'Secondary':
|
179 |
+
raw_baselines = site_baselines[site_baselines['Slate'] == 'Secondary']
|
180 |
split_var1 = st.radio("Are you running the full slate or crtain games?", ('Full Slate Run', 'Specific Games'), key='split_var1')
|
181 |
if split_var1 == 'Specific Games':
|
182 |
team_var1 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var1')
|