Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
Β·
dc829eb
1
Parent(s):
e29f758
adding some table prints and cleaning up UI
Browse files- src/sports/nhl_functions.py +2 -1
- src/streamlit_app.py +4 -4
src/sports/nhl_functions.py
CHANGED
|
@@ -876,7 +876,7 @@ def build_dk_player_level_basic_outcomes(slate_info, dk_player_hold, fd_player_h
|
|
| 876 |
dk_player_hold = pd_concat([dk_player_hold, final_Proj_basic_dk])
|
| 877 |
dk_player_hold =dk_player_hold.replace([np_nan, np_inf, -np_inf], '')
|
| 878 |
|
| 879 |
-
|
| 880 |
for slates in slate_options:
|
| 881 |
|
| 882 |
if slates == 'Main Slate':
|
|
@@ -1097,6 +1097,7 @@ def build_dk_player_level_basic_outcomes(slate_info, dk_player_hold, fd_player_h
|
|
| 1097 |
fd_player_hold = pd_concat([fd_player_hold, final_Proj_basic_fd])
|
| 1098 |
fd_player_hold = fd_player_hold.replace([np_nan, np_inf, -np_inf], '')
|
| 1099 |
|
|
|
|
| 1100 |
final_Proj = pd_concat([dk_player_hold, fd_player_hold])
|
| 1101 |
|
| 1102 |
tz = pytz_timezone('US/Central')
|
|
|
|
| 876 |
dk_player_hold = pd_concat([dk_player_hold, final_Proj_basic_dk])
|
| 877 |
dk_player_hold =dk_player_hold.replace([np_nan, np_inf, -np_inf], '')
|
| 878 |
|
| 879 |
+
st.table(dk_player_hold.head(10))
|
| 880 |
for slates in slate_options:
|
| 881 |
|
| 882 |
if slates == 'Main Slate':
|
|
|
|
| 1097 |
fd_player_hold = pd_concat([fd_player_hold, final_Proj_basic_fd])
|
| 1098 |
fd_player_hold = fd_player_hold.replace([np_nan, np_inf, -np_inf], '')
|
| 1099 |
|
| 1100 |
+
st.table(fd_player_hold.head(10))
|
| 1101 |
final_Proj = pd_concat([dk_player_hold, fd_player_hold])
|
| 1102 |
|
| 1103 |
tz = pytz_timezone('US/Central')
|
src/streamlit_app.py
CHANGED
|
@@ -39,7 +39,7 @@ st.set_page_config(
|
|
| 39 |
)
|
| 40 |
|
| 41 |
st.title("π Paydirt Model Updates")
|
| 42 |
-
st.markdown("###
|
| 43 |
st.markdown("---")
|
| 44 |
|
| 45 |
# Sidebar Configuration
|
|
@@ -57,13 +57,13 @@ selected_sport = st.sidebar.selectbox(
|
|
| 57 |
"Select Sport",
|
| 58 |
options=["NHL", "NFL", "NBA", "MLB"],
|
| 59 |
format_func=lambda x: f"{sport_icons[x]} {x}",
|
| 60 |
-
help="Choose which sport to
|
| 61 |
)
|
| 62 |
|
| 63 |
# Main content area
|
| 64 |
-
st.info(f"Click the button below to start {selected_sport}
|
| 65 |
|
| 66 |
-
if st.button(f"{sport_icons[selected_sport]}
|
| 67 |
|
| 68 |
# Route to sport-specific pipeline
|
| 69 |
if selected_sport == "NHL":
|
|
|
|
| 39 |
)
|
| 40 |
|
| 41 |
st.title("π Paydirt Model Updates")
|
| 42 |
+
st.markdown("### Update models and generate seed frames")
|
| 43 |
st.markdown("---")
|
| 44 |
|
| 45 |
# Sidebar Configuration
|
|
|
|
| 57 |
"Select Sport",
|
| 58 |
options=["NHL", "NFL", "NBA", "MLB"],
|
| 59 |
format_func=lambda x: f"{sport_icons[x]} {x}",
|
| 60 |
+
help="Choose which sport to update"
|
| 61 |
)
|
| 62 |
|
| 63 |
# Main content area
|
| 64 |
+
st.info(f"Click the button below to start {selected_sport} update process")
|
| 65 |
|
| 66 |
+
if st.button(f"{sport_icons[selected_sport]} Update {selected_sport} models and generate seed frames", type="primary", use_container_width=True):
|
| 67 |
|
| 68 |
# Route to sport-specific pipeline
|
| 69 |
if selected_sport == "NHL":
|