Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -698,20 +698,26 @@ with tab2:
|
|
698 |
if st.button("Load/Reset Data", key='reset1'):
|
699 |
st.cache_data.clear()
|
700 |
dk_roo_raw = load_dk_player_projections()
|
|
|
701 |
fd_roo_raw = load_fd_player_projections()
|
|
|
702 |
|
703 |
-
slate_var1 = st.radio("Which data are you loading?", ('Paydirt', 'User'))
|
704 |
site_var1 = 'Draftkings'
|
705 |
if site_var1 == 'Draftkings':
|
706 |
if slate_var1 == 'User':
|
707 |
raw_baselines = proj_dataframe[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Median', 'Own']]
|
708 |
-
elif slate_var1
|
709 |
raw_baselines = dk_roo_raw
|
|
|
|
|
710 |
elif site_var1 == 'Fanduel':
|
711 |
if slate_var1 == 'User':
|
712 |
raw_baselines = proj_dataframe
|
713 |
-
elif slate_var1
|
714 |
-
raw_baselines =
|
|
|
|
|
715 |
st.info("If you are uploading a portfolio, note that there is an adjustments to projections and deviation mapping to prevent 'Projection Bias' and create a fair simulation")
|
716 |
insert_port1 = st.selectbox("Are you uploading a portfolio?", ('No', 'Yes'))
|
717 |
if insert_port1 == 'Yes':
|
|
|
698 |
if st.button("Load/Reset Data", key='reset1'):
|
699 |
st.cache_data.clear()
|
700 |
dk_roo_raw = load_dk_player_projections()
|
701 |
+
dk_roo_raw_2 = load_dk_player_projections_2()
|
702 |
fd_roo_raw = load_fd_player_projections()
|
703 |
+
fd_roo_raw_2 = load_fd_player_projections_2()
|
704 |
|
705 |
+
slate_var1 = st.radio("Which data are you loading?", ('Paydirt (Main)', 'Paydirt (Secondary)', 'User'))
|
706 |
site_var1 = 'Draftkings'
|
707 |
if site_var1 == 'Draftkings':
|
708 |
if slate_var1 == 'User':
|
709 |
raw_baselines = proj_dataframe[['Player', 'Salary', 'Position', 'Team', 'Opp', 'Median', 'Own']]
|
710 |
+
elif slate_var1 == 'Paydirt (Main)':
|
711 |
raw_baselines = dk_roo_raw
|
712 |
+
elif slate_var1 == 'Paydirt (Secondary)':
|
713 |
+
raw_baselines = dk_roo_raw_2
|
714 |
elif site_var1 == 'Fanduel':
|
715 |
if slate_var1 == 'User':
|
716 |
raw_baselines = proj_dataframe
|
717 |
+
elif slate_var1 == 'Paydirt (Main)':
|
718 |
+
raw_baselines = dk_roo_raw
|
719 |
+
elif slate_var1 == 'Paydirt (Secondary)':
|
720 |
+
raw_baselines = dk_roo_raw_2
|
721 |
st.info("If you are uploading a portfolio, note that there is an adjustments to projections and deviation mapping to prevent 'Projection Bias' and create a fair simulation")
|
722 |
insert_port1 = st.selectbox("Are you uploading a portfolio?", ('No', 'Yes'))
|
723 |
if insert_port1 == 'Yes':
|