Update app.py
Browse files
app.py
CHANGED
|
@@ -653,8 +653,8 @@ def server(input, output, session):
|
|
| 653 |
])
|
| 654 |
|
| 655 |
# Join total pitches per pitcher to the grouped DataFrame on pitcher_id
|
| 656 |
-
df_spring_group = df_spring_group.join(df_pitcher_totals, on=["pitcher_id"], how="left")
|
| 657 |
-
df_spring_group = df_spring_group.join(df_pitcher_totals_hands, on=["pitcher_id"], how="left")
|
| 658 |
|
| 659 |
# Now calculate the pitch percent for each pitcher/pitch_type combination
|
| 660 |
df_spring_group = df_spring_group.with_columns(
|
|
|
|
| 653 |
])
|
| 654 |
|
| 655 |
# Join total pitches per pitcher to the grouped DataFrame on pitcher_id
|
| 656 |
+
df_spring_group = df_spring_group.join(df_pitcher_totals, on=["pitcher_id",'game_id'], how="left")
|
| 657 |
+
df_spring_group = df_spring_group.join(df_pitcher_totals_hands, on=["pitcher_id",'game_id'], how="left")
|
| 658 |
|
| 659 |
# Now calculate the pitch percent for each pitcher/pitch_type combination
|
| 660 |
df_spring_group = df_spring_group.with_columns(
|