nesticot commited on
Commit
a7edbb9
·
verified ·
1 Parent(s): 7694b68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(