Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -563,18 +563,34 @@ with tab5:
|
|
563 |
)
|
564 |
|
565 |
with tab6:
|
|
|
566 |
st.info(t_stamp)
|
567 |
st.info('This sheet is more or less a static represenation of the Stat Specific Simulations. ROR is rate of return based on hit rate and payout. Use the over and under EDGEs to place bets. 20%+ should be considered a 1 unit bet, 15-20% is .75 units, 10-15% is .50 units, 5-10% is .25 units, and 0-5% is .1 units.')
|
568 |
if st.button("Reset Data", key='reset6'):
|
569 |
st.cache_data.clear()
|
570 |
pitcher_stats, hitter_stats, team_frame, prop_frame, betsheet_frame, pick_frame, t_stamp = init_baselines()
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
betsheet_disp = betsheet_frame.copy()
|
577 |
betsheet_disp = betsheet_disp[betsheet_disp['Team'].isin(team_var6)]
|
|
|
|
|
578 |
betsheet_disp = betsheet_disp.sort_values(by='over_EDGE', ascending=False)
|
579 |
st.dataframe(betsheet_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height=750, use_container_width = True)
|
580 |
st.download_button(
|
|
|
563 |
)
|
564 |
|
565 |
with tab6:
|
566 |
+
col1, col2, col3 = st.columns([2, 2, 2])
|
567 |
st.info(t_stamp)
|
568 |
st.info('This sheet is more or less a static represenation of the Stat Specific Simulations. ROR is rate of return based on hit rate and payout. Use the over and under EDGEs to place bets. 20%+ should be considered a 1 unit bet, 15-20% is .75 units, 10-15% is .50 units, 5-10% is .25 units, and 0-5% is .1 units.')
|
569 |
if st.button("Reset Data", key='reset6'):
|
570 |
st.cache_data.clear()
|
571 |
pitcher_stats, hitter_stats, team_frame, prop_frame, betsheet_frame, pick_frame, t_stamp = init_baselines()
|
572 |
+
with col1:
|
573 |
+
split_var6 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var6')
|
574 |
+
if split_var6 == 'Specific Teams':
|
575 |
+
team_var6 = st.multiselect('Which teams would you like to include in the tables?', options = betsheet_frame['Team'].unique(), key='team_var6')
|
576 |
+
elif split_var6 == 'All':
|
577 |
+
team_var6 = betsheet_frame.Team.values.tolist()
|
578 |
+
with col2:
|
579 |
+
prop_choice_var6 = st.radio("Would you like to view all prop types or specific ones?", ('All', 'Specific Props'), key='prop_choice_var6')
|
580 |
+
if prop_choice_var6 == 'Specific Props':
|
581 |
+
prop_var6 = st.multiselect('Which props would you like to include in the tables?', options = betsheet_frame['Prop_type'].unique(), key='prop_var6')
|
582 |
+
elif prop_choice_var6 == 'All':
|
583 |
+
prop_var6 = betsheet_frame.Prop_type.values.tolist()
|
584 |
+
with col3:
|
585 |
+
player_choice_var6 = st.radio("Would you like to view all players props or specific ones?", ('All', 'Specific Players'), key='player_choice_var6')
|
586 |
+
if player_choice_var6 == 'Specific Players':
|
587 |
+
player_var6 = st.multiselect('Which players would you like to include in the tables?', options = betsheet_frame['Prop_type'].unique(), key='player_var6')
|
588 |
+
elif player_choice_var6 == 'All':
|
589 |
+
player_var6 = betsheet_frame.Player.values.tolist()
|
590 |
betsheet_disp = betsheet_frame.copy()
|
591 |
betsheet_disp = betsheet_disp[betsheet_disp['Team'].isin(team_var6)]
|
592 |
+
betsheet_disp = betsheet_disp[betsheet_disp['Prop_type'].isin(prop_var6)]
|
593 |
+
betsheet_disp = betsheet_disp[betsheet_disp['Player'].isin(player_var6)]
|
594 |
betsheet_disp = betsheet_disp.sort_values(by='over_EDGE', ascending=False)
|
595 |
st.dataframe(betsheet_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height=750, use_container_width = True)
|
596 |
st.download_button(
|