Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -149,8 +149,7 @@ with col1:
|
|
149 |
gamelog_table = init_baselines()
|
150 |
indv_teams = gamelog_table.drop_duplicates(subset='Team')
|
151 |
total_teams = indv_teams.Team.values.tolist()
|
152 |
-
|
153 |
-
total_dates = indv_dates.Date.values.tolist()
|
154 |
|
155 |
split_var1 = st.radio("What table would you like to view?", ('Season Logs', 'Gamelogs'), key='split_var1')
|
156 |
split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var2')
|
@@ -166,8 +165,8 @@ with col1:
|
|
166 |
low_date = st.date_input('Min Date:', value=None, format="YYYY-MM-DD", key='low_date')
|
167 |
high_date = st.date_input('Max Date:', value=None, format="YYYY-MM-DD", key='high_date')
|
168 |
elif split_var3 == 'All':
|
169 |
-
low_date = min(
|
170 |
-
high_date = max(
|
171 |
|
172 |
min_var1 = st.slider("Is there a certain minutes range you want to view?", 0, 60, (0, 60), key='min_var1')
|
173 |
|
|
|
149 |
gamelog_table = init_baselines()
|
150 |
indv_teams = gamelog_table.drop_duplicates(subset='Team')
|
151 |
total_teams = indv_teams.Team.values.tolist()
|
152 |
+
total_dates = gamelog_table.Date.values.tolist()
|
|
|
153 |
|
154 |
split_var1 = st.radio("What table would you like to view?", ('Season Logs', 'Gamelogs'), key='split_var1')
|
155 |
split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var2')
|
|
|
165 |
low_date = st.date_input('Min Date:', value=None, format="YYYY-MM-DD", key='low_date')
|
166 |
high_date = st.date_input('Max Date:', value=None, format="YYYY-MM-DD", key='high_date')
|
167 |
elif split_var3 == 'All':
|
168 |
+
low_date = gamelog_table['Date'].min()
|
169 |
+
high_date = gamelog_table['Date'].max()
|
170 |
|
171 |
min_var1 = st.slider("Is there a certain minutes range you want to view?", 0, 60, (0, 60), key='min_var1')
|
172 |
|