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