Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -934,13 +934,16 @@ with tab2:
|
|
934 |
del st.session_state[key]
|
935 |
dk_roo_raw, fd_roo_raw, dkid_dict, fdid_dict = load_player_projections()
|
936 |
|
937 |
-
slate_var1 = st.radio("Which data are you loading?", ('Main Slate', 'Secondary Slate', '
|
938 |
site_var1 = st.radio("What site are you working with?", ('Draftkings', 'Fanduel'))
|
939 |
if site_var1 == 'Draftkings':
|
940 |
if slate_var1 == 'User':
|
941 |
raw_baselines = proj_dataframe[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Median', 'Own']]
|
942 |
elif slate_var1 != 'User':
|
943 |
-
|
|
|
|
|
|
|
944 |
elif site_var1 == 'Fanduel':
|
945 |
if slate_var1 == 'User':
|
946 |
raw_baselines = proj_dataframe
|
|
|
934 |
del st.session_state[key]
|
935 |
dk_roo_raw, fd_roo_raw, dkid_dict, fdid_dict = load_player_projections()
|
936 |
|
937 |
+
slate_var1 = st.radio("Which data are you loading?", ('Main Slate', 'Secondary Slate', 'User'))
|
938 |
site_var1 = st.radio("What site are you working with?", ('Draftkings', 'Fanduel'))
|
939 |
if site_var1 == 'Draftkings':
|
940 |
if slate_var1 == 'User':
|
941 |
raw_baselines = proj_dataframe[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Median', 'Own']]
|
942 |
elif slate_var1 != 'User':
|
943 |
+
if slate_var1 == 'Main Slate':
|
944 |
+
raw_baselines = dk_roo_raw[dk_roo_raw['Type'] == 'Basic']
|
945 |
+
elif slate_var1 != 'Main Slate':
|
946 |
+
raw_baselines = dk_roo_raw[dk_roo_raw['Type'] == 'Secondary']
|
947 |
elif site_var1 == 'Fanduel':
|
948 |
if slate_var1 == 'User':
|
949 |
raw_baselines = proj_dataframe
|