James McCool
commited on
Commit
·
e2de7d7
1
Parent(s):
c0bd11c
Update raw_baselines slicing to exclude the last column instead of the last two, ensuring accurate data representation for DraftKings and FanDuel slate selections.
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -1029,10 +1029,10 @@ if selected_tab == 'Stacks ROO':
|
|
| 1029 |
split_var1 = st.radio("Would you like to view the whole slate or just specific games?", ('Full Slate Run', 'Specific Games'), key='split_var1_radio')
|
| 1030 |
if site_var == 'Draftkings':
|
| 1031 |
raw_baselines = dk_stacks_raw[dk_stacks_raw['slate'] == str(slate_var1)]
|
| 1032 |
-
raw_baselines = raw_baselines.iloc[:,:-
|
| 1033 |
elif site_var == 'Fanduel':
|
| 1034 |
raw_baselines = fd_stacks_raw[fd_stacks_raw['slate'] == str(slate_var1)]
|
| 1035 |
-
raw_baselines = raw_baselines.iloc[:,:-
|
| 1036 |
if split_var1 == 'Specific Games':
|
| 1037 |
team_var1 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var1_multiselect')
|
| 1038 |
elif split_var1 == 'Full Slate Run':
|
|
|
|
| 1029 |
split_var1 = st.radio("Would you like to view the whole slate or just specific games?", ('Full Slate Run', 'Specific Games'), key='split_var1_radio')
|
| 1030 |
if site_var == 'Draftkings':
|
| 1031 |
raw_baselines = dk_stacks_raw[dk_stacks_raw['slate'] == str(slate_var1)]
|
| 1032 |
+
raw_baselines = raw_baselines.iloc[:,:-1]
|
| 1033 |
elif site_var == 'Fanduel':
|
| 1034 |
raw_baselines = fd_stacks_raw[fd_stacks_raw['slate'] == str(slate_var1)]
|
| 1035 |
+
raw_baselines = raw_baselines.iloc[:,:-1]
|
| 1036 |
if split_var1 == 'Specific Games':
|
| 1037 |
team_var1 = st.multiselect('Which teams would you like to include in the ROO?', options = raw_baselines['Team'].unique(), key='team_var1_multiselect')
|
| 1038 |
elif split_var1 == 'Full Slate Run':
|