Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -323,7 +323,19 @@ with tab5:
|
|
323 |
export_container = st.empty()
|
324 |
|
325 |
with col1:
|
326 |
-
game_select_var = st.selectbox('Select prop source', options = ['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
prop_type_var = st.selectbox('Select prop category', options = ['All Props', 'points', 'rebounds', 'assists', 'threes', 'PRA', 'points+rebounds',
|
328 |
'points+assists', 'rebounds+assists'])
|
329 |
if prop_type_var == 'All Props':
|
@@ -335,7 +347,7 @@ with tab5:
|
|
335 |
if prop_type_var == 'All Props':
|
336 |
for prop in all_sim_vars:
|
337 |
|
338 |
-
if game_select_var == '
|
339 |
prop_df = prop_frame[['Player', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
340 |
elif game_select_var == 'Pick6':
|
341 |
prop_df = pick_frame[['Full_name', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
@@ -433,7 +445,7 @@ with tab5:
|
|
433 |
final_outcomes = sim_all_hold
|
434 |
|
435 |
elif prop_type_var != 'All Props':
|
436 |
-
if game_select_var == '
|
437 |
prop_df = prop_frame[['Player', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
438 |
elif game_select_var == 'Pick6':
|
439 |
prop_df = pick_frame[['Full_name', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
|
|
323 |
export_container = st.empty()
|
324 |
|
325 |
with col1:
|
326 |
+
game_select_var = st.selectbox('Select prop source', options = ['Draftkings', 'Pick6'])
|
327 |
+
if game_select_var == 'Draftkings':
|
328 |
+
prop_df = prop_frame[['Player', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
329 |
+
elif game_select_var == 'Pick6':
|
330 |
+
prop_df = pick_frame[['Full_name', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
331 |
+
prop_df.rename(columns={"Full_name": "Player"}, inplace = True)
|
332 |
+
st.download_button(
|
333 |
+
label="Download Prop Source",
|
334 |
+
data=convert_df_to_csv(prop_df),
|
335 |
+
file_name='Nba_prop_source.csv',
|
336 |
+
mime='text/csv',
|
337 |
+
key='prop_proj',
|
338 |
+
)
|
339 |
prop_type_var = st.selectbox('Select prop category', options = ['All Props', 'points', 'rebounds', 'assists', 'threes', 'PRA', 'points+rebounds',
|
340 |
'points+assists', 'rebounds+assists'])
|
341 |
if prop_type_var == 'All Props':
|
|
|
347 |
if prop_type_var == 'All Props':
|
348 |
for prop in all_sim_vars:
|
349 |
|
350 |
+
if game_select_var == 'Draftkings':
|
351 |
prop_df = prop_frame[['Player', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
352 |
elif game_select_var == 'Pick6':
|
353 |
prop_df = pick_frame[['Full_name', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
|
|
445 |
final_outcomes = sim_all_hold
|
446 |
|
447 |
elif prop_type_var != 'All Props':
|
448 |
+
if game_select_var == 'Draftkings':
|
449 |
prop_df = prop_frame[['Player', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
450 |
elif game_select_var == 'Pick6':
|
451 |
prop_df = pick_frame[['Full_name', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|