Update app.py
Browse files
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 |
-
|
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)
|