Spaces:
Running
Running
James McCool
commited on
Commit
·
3fbcd23
1
Parent(s):
ddf3ed9
Enhance baseline data handling in app.py by introducing conditional logic for DraftKings and FanDuel. This update assigns the appropriate raw data and column names based on the selected site, improving the accuracy and flexibility of contest simulations.
Browse files
app.py
CHANGED
@@ -428,7 +428,12 @@ with tab1:
|
|
428 |
dk_raw, fd_raw = init_baselines(sim_sport_var1)
|
429 |
sim_slate_var1 = st.radio("Which data are you loading?", ('Showdown', 'Secondary Showdown', 'Auxiliary Showdown'), key='sim_slate_var1')
|
430 |
sim_site_var1 = st.radio("What site are you working with?", ('Draftkings', 'Fanduel'), key='sim_site_var1')
|
431 |
-
|
|
|
|
|
|
|
|
|
|
|
432 |
contest_var1 = st.selectbox("What contest size are you simulating?", ('Small', 'Medium', 'Large', 'Custom'))
|
433 |
if contest_var1 == 'Small':
|
434 |
Contest_Size = 1000
|
|
|
428 |
dk_raw, fd_raw = init_baselines(sim_sport_var1)
|
429 |
sim_slate_var1 = st.radio("Which data are you loading?", ('Showdown', 'Secondary Showdown', 'Auxiliary Showdown'), key='sim_slate_var1')
|
430 |
sim_site_var1 = st.radio("What site are you working with?", ('Draftkings', 'Fanduel'), key='sim_site_var1')
|
431 |
+
if sim_site_var1 == 'Draftkings':
|
432 |
+
raw_baselines = dk_raw
|
433 |
+
column_names = dk_columns
|
434 |
+
elif sim_site_var1 == 'Fanduel':
|
435 |
+
raw_baselines = fd_raw
|
436 |
+
column_names = fd_columns
|
437 |
contest_var1 = st.selectbox("What contest size are you simulating?", ('Small', 'Medium', 'Large', 'Custom'))
|
438 |
if contest_var1 == 'Small':
|
439 |
Contest_Size = 1000
|