Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ non_qb_stats = overall_stats.loc[overall_stats['Position'] != 'QB']
|
|
73 |
team_dict = dict(zip(prop_frame['Player'], prop_frame['Team']))
|
74 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
75 |
|
76 |
-
prop_table_options = ['
|
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']
|
@@ -179,7 +179,7 @@ with tab4:
|
|
179 |
elif split_var5 == 'All':
|
180 |
team_var5 = prop_trends.Team.values.tolist()
|
181 |
prop_type_var2 = st.selectbox('Select type of prop are you wanting to view', options = prop_table_options)
|
182 |
-
book_var2 = st.selectbox('Select type of book do you want to view?', options =
|
183 |
prop_frame_disp = prop_trends[prop_trends['Team'].isin(team_var5)]
|
184 |
prop_frame_disp = prop_frame_disp[prop_frame_disp['book'] == book_var2]
|
185 |
prop_frame_disp = prop_frame_disp[prop_frame_disp['prop_type'] == prop_type_var2]
|
|
|
73 |
team_dict = dict(zip(prop_frame['Player'], prop_frame['Team']))
|
74 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
75 |
|
76 |
+
prop_table_options = ['NFL_GAME_PLAYER_RUSHING_YARDS', 'NFL_GAME_PLAYER_RECEIVING_YARDS', 'NFL_GAME_PLAYER_PASSING_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']
|
|
|
179 |
elif split_var5 == 'All':
|
180 |
team_var5 = prop_trends.Team.values.tolist()
|
181 |
prop_type_var2 = st.selectbox('Select type of prop are you wanting to view', options = prop_table_options)
|
182 |
+
book_var2 = st.selectbox('Select type of book do you want to view?', options = ['FANDUEL', 'BET365', 'DRAFTKINGS', 'CONSENSUS'])
|
183 |
prop_frame_disp = prop_trends[prop_trends['Team'].isin(team_var5)]
|
184 |
prop_frame_disp = prop_frame_disp[prop_frame_disp['book'] == book_var2]
|
185 |
prop_frame_disp = prop_frame_disp[prop_frame_disp['prop_type'] == prop_type_var2]
|