nesticot commited on
Commit
7d41d8c
1 Parent(s): 9e40d3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,7 +59,7 @@ pitch_colours = {
59
 
60
  import pitcher_update as pu
61
  df_2024 = pu.df_update(df_2024)
62
- df_2024['pitch_count_hand'] = df_2024.groupby(['pitcher_id','batter_hand'])['start_speed'].transform('count')
63
 
64
 
65
 
@@ -217,7 +217,7 @@ def server(input, output, session):
217
 
218
  df_plot = df_plot_full[(df_plot_full['pitch_type']==pitch_input)]
219
 
220
-
221
 
222
  print("THIS IS HERE")
223
  print(df_plot)
 
59
 
60
  import pitcher_update as pu
61
  df_2024 = pu.df_update(df_2024)
62
+
63
 
64
 
65
 
 
217
 
218
  df_plot = df_plot_full[(df_plot_full['pitch_type']==pitch_input)]
219
 
220
+ df_plot['pitch_count_hand'] = df_plot.groupby(['pitcher_id','batter_hand'])['start_speed'].transform('count')
221
 
222
  print("THIS IS HERE")
223
  print(df_plot)