Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -564,8 +564,8 @@ with tab5:
|
|
564 |
|
565 |
with tab6:
|
566 |
st.info(t_stamp)
|
|
|
567 |
if st.button("Reset Data", key='reset6'):
|
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 |
st.cache_data.clear()
|
570 |
pitcher_stats, hitter_stats, team_frame, prop_frame, betsheet_frame, pick_frame, t_stamp = init_baselines()
|
571 |
split_var6 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var6')
|
@@ -576,7 +576,7 @@ with tab6:
|
|
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), use_container_width = True)
|
580 |
st.download_button(
|
581 |
label="Export Betsheet",
|
582 |
data=convert_df_to_csv(betsheet_disp),
|
|
|
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 |
split_var6 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var6')
|
|
|
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(
|
581 |
label="Export Betsheet",
|
582 |
data=convert_df_to_csv(betsheet_disp),
|