Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -371,7 +371,7 @@ with tab6:
|
|
371 |
mime='text/csv',
|
372 |
key='prop_source',
|
373 |
)
|
374 |
-
prop_type_var = st.selectbox('Select prop category', options = ['All Props', 'pass_yards', 'rush_yards', 'rec_yards', 'receptions', 'rush_attempts'])
|
375 |
|
376 |
if st.button('Simulate Prop Category'):
|
377 |
with col2:
|
@@ -417,7 +417,9 @@ with tab6:
|
|
417 |
df['Median'] = df['rec']
|
418 |
elif prop == "NFL_GAME_PLAYER_RUSHING_ATTEMPTS":
|
419 |
df['Median'] = df['rush_att']
|
420 |
-
|
|
|
|
|
421 |
flex_file = df
|
422 |
flex_file['Floor'] = flex_file['Median'] * .25
|
423 |
flex_file['Ceiling'] = flex_file['Median'] + (flex_file['Median'] * 1.75)
|
@@ -572,6 +574,8 @@ with tab6:
|
|
572 |
df['Median'] = df['rec']
|
573 |
elif prop_type_var == "rush_attempts":
|
574 |
df['Median'] = df['rush_att']
|
|
|
|
|
575 |
|
576 |
flex_file = df
|
577 |
flex_file['Floor'] = flex_file['Median'] * .25
|
|
|
371 |
mime='text/csv',
|
372 |
key='prop_source',
|
373 |
)
|
374 |
+
prop_type_var = st.selectbox('Select prop category', options = ['All Props', 'pass_yards', 'rush_yards', 'rec_yards', 'receptions', 'rush_attempts', 'pass_attempts'])
|
375 |
|
376 |
if st.button('Simulate Prop Category'):
|
377 |
with col2:
|
|
|
417 |
df['Median'] = df['rec']
|
418 |
elif prop == "NFL_GAME_PLAYER_RUSHING_ATTEMPTS":
|
419 |
df['Median'] = df['rush_att']
|
420 |
+
elif prop == "NFL_GAME_PLAYER_PASSING_ATTEMPTS":
|
421 |
+
df['Median'] = df['pass_att']
|
422 |
+
|
423 |
flex_file = df
|
424 |
flex_file['Floor'] = flex_file['Median'] * .25
|
425 |
flex_file['Ceiling'] = flex_file['Median'] + (flex_file['Median'] * 1.75)
|
|
|
574 |
df['Median'] = df['rec']
|
575 |
elif prop_type_var == "rush_attempts":
|
576 |
df['Median'] = df['rush_att']
|
577 |
+
elif prop_type_var == "pass_attempts":
|
578 |
+
df['Median'] = df['pass_att']
|
579 |
|
580 |
flex_file = df
|
581 |
flex_file['Floor'] = flex_file['Median'] * .25
|