nesticot commited on
Commit
b318435
·
verified ·
1 Parent(s): 6d0bbe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -733,7 +733,7 @@ def server(input, output, session):
733
  values="pitcher_total",
734
  index="pitcher_id",
735
  columns="batter_hand",
736
- aggregate_function="first"
737
  )
738
  .rename({"L": "pitcher_total_left", "R": "pitcher_total_right"})
739
  .fill_null(0) # Fill missing values with 0 if some pitchers don't face both hands
 
733
  values="pitcher_total",
734
  index="pitcher_id",
735
  columns="batter_hand",
736
+ aggregate_function="sum"
737
  )
738
  .rename({"L": "pitcher_total_left", "R": "pitcher_total_right"})
739
  .fill_null(0) # Fill missing values with 0 if some pitchers don't face both hands