Update app.py
Browse files
app.py
CHANGED
@@ -184,7 +184,8 @@ if add_commissioner:
|
|
184 |
|
185 |
# Schedule Generation
|
186 |
if st.button("Generate Schedule"):
|
187 |
-
st.session_state.schedule_df =
|
|
|
188 |
|
189 |
# Schedule Viewing
|
190 |
st.header("View Schedule")
|
@@ -199,7 +200,7 @@ if st.session_state.schedule_df is not None:
|
|
199 |
# Analytics & Comparisons
|
200 |
st.header("Analytics & Comparisons")
|
201 |
analytics_option = st.selectbox("Choose an analysis type:", ["Team Workload Analysis", "Match Distribution", "Inter-Conference Match Analysis", "Commissioner Analytics"])
|
202 |
-
historical_data =
|
203 |
|
204 |
if analytics_option == "Team Workload Analysis":
|
205 |
st.subheader("Historical Data")
|
|
|
184 |
|
185 |
# Schedule Generation
|
186 |
if st.button("Generate Schedule"):
|
187 |
+
st.session_state.schedule_df['Date'] = pd.to_datetime(st.session_state.schedule_df['Date'])
|
188 |
+
|
189 |
|
190 |
# Schedule Viewing
|
191 |
st.header("View Schedule")
|
|
|
200 |
# Analytics & Comparisons
|
201 |
st.header("Analytics & Comparisons")
|
202 |
analytics_option = st.selectbox("Choose an analysis type:", ["Team Workload Analysis", "Match Distribution", "Inter-Conference Match Analysis", "Commissioner Analytics"])
|
203 |
+
historical_data['Date'] = pd.to_datetime(historical_data['Date'])
|
204 |
|
205 |
if analytics_option == "Team Workload Analysis":
|
206 |
st.subheader("Historical Data")
|