Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -309,7 +309,9 @@ def server(input, output, session):
|
|
309 |
|
310 |
|
311 |
df_plot = df_2024_update[(df_2024_update['pitcher_id']==pitcher_id_select)]
|
312 |
-
|
|
|
|
|
313 |
df_plot = df_plot[df_plot['batter_hand'].isin(split_dict_hand[input.split_id()])]
|
314 |
|
315 |
if input.count_id_balls()=='greater' and input.count_id_strikes()=='greater' and int(input.ball_id())==0 and int(input.strike_id())==0:
|
|
|
309 |
|
310 |
|
311 |
df_plot = df_2024_update[(df_2024_update['pitcher_id']==pitcher_id_select)]
|
312 |
+
df_plot = df_plot[(pd.to_datetime(df_plot['game_date']).dt.date>=input.date_range_id()[0])&
|
313 |
+
(pd.to_datetime(df_plot['game_date']).dt.date<=input.date_range_id()[1])]
|
314 |
+
|
315 |
df_plot = df_plot[df_plot['batter_hand'].isin(split_dict_hand[input.split_id()])]
|
316 |
|
317 |
if input.count_id_balls()=='greater' and input.count_id_strikes()=='greater' and int(input.ball_id())==0 and int(input.strike_id())==0:
|