Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
|
76 |
prop_table_options = ['NFL_GAME_PLAYER_PASSING_YARDS', 'NFL_GAME_PLAYER_RUSHING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_RECEPTIONS', 'NFL_GAME_PLAYER_RUSHING_ATTEMPTS', 'NFL_GAME_PLAYER_PASSING_ATTEMPTS']
|
77 |
prop_format = {'L3 Success': '{:.2%}', 'L6_Success': '{:.2%}', 'L10_success': '{:.2%}', 'Trending Over': '{:.2%}', 'Trending Under': '{:.2%}',
|
78 |
'Implied Over': '{:.2%}', 'Implied Under': '{:.2%}', 'Over Edge': '{:.2%}', 'Under Edge': '{:.2%}'}
|
79 |
-
all_sim_vars = ['
|
80 |
sim_all_hold = pd.DataFrame(columns=['Player', 'Team', 'Prop type', 'Prop', 'Mean_Outcome', 'Imp Over', 'Over%', 'Imp Under', 'Under%', 'Bet?', 'Edge'])
|
81 |
|
82 |
tab1, tab2, tab3, tab4, tab5, tab6 = st.tabs(["Game Betting Model", "QB Projections", "RB/WR/TE Projections", "Player Prop Trends", "Player Prop Simulations", "Stat Specific Simulations"])
|
@@ -248,6 +248,8 @@ with tab5:
|
|
248 |
|
249 |
player_var = df.loc[df['Player'] == player_check]
|
250 |
player_var = player_var.reset_index()
|
|
|
|
|
251 |
|
252 |
if prop_type_var == 'Pass Yards':
|
253 |
df['Median'] = df['pass_yards']
|
|
|
76 |
prop_table_options = ['NFL_GAME_PLAYER_PASSING_YARDS', 'NFL_GAME_PLAYER_RUSHING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_RECEPTIONS', 'NFL_GAME_PLAYER_RUSHING_ATTEMPTS', 'NFL_GAME_PLAYER_PASSING_ATTEMPTS']
|
77 |
prop_format = {'L3 Success': '{:.2%}', 'L6_Success': '{:.2%}', 'L10_success': '{:.2%}', 'Trending Over': '{:.2%}', 'Trending Under': '{:.2%}',
|
78 |
'Implied Over': '{:.2%}', 'Implied Under': '{:.2%}', 'Over Edge': '{:.2%}', 'Under Edge': '{:.2%}'}
|
79 |
+
all_sim_vars = ['NFL_GAME_PLAYER_PASSING_YARDS', 'NFL_GAME_PLAYER_RUSHING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_RECEPTIONS', 'NFL_GAME_PLAYER_RUSHING_ATTEMPTS', 'NFL_GAME_PLAYER_PASSING_ATTEMPTS']
|
80 |
sim_all_hold = pd.DataFrame(columns=['Player', 'Team', 'Prop type', 'Prop', 'Mean_Outcome', 'Imp Over', 'Over%', 'Imp Under', 'Under%', 'Bet?', 'Edge'])
|
81 |
|
82 |
tab1, tab2, tab3, tab4, tab5, tab6 = st.tabs(["Game Betting Model", "QB Projections", "RB/WR/TE Projections", "Player Prop Trends", "Player Prop Simulations", "Stat Specific Simulations"])
|
|
|
248 |
|
249 |
player_var = df.loc[df['Player'] == player_check]
|
250 |
player_var = player_var.reset_index()
|
251 |
+
|
252 |
+
['NFL_GAME_PLAYER_PASSING_YARDS', 'NFL_GAME_PLAYER_RUSHING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_RECEPTIONS', 'NFL_GAME_PLAYER_RUSHING_ATTEMPTS', 'NFL_GAME_PLAYER_PASSING_ATTEMPTS']
|
253 |
|
254 |
if prop_type_var == 'Pass Yards':
|
255 |
df['Median'] = df['pass_yards']
|