Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions impectPy/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ def fetch_set_pieces(connection, url):
coaches_map = coaches.set_index("id")["name"].to_dict()

# convert coachId to integer if it is None
events["homeSquadCoachId"] = events["homeSquadCoachId"].astype("Int64")
events["awaySquadCoachId"] = events["awaySquadCoachId"].astype("Int64")
events["homeSquadCoachName"] = events.homeSquadCoachId.map(coaches_map)
events["awaySquadCoachName"] = events.awaySquadCoachId.map(coaches_map)
events["homeCoachId"] = events["homeSquadCoachId"].astype("Int64")
events["awayCoachId"] = events["awaySquadCoachId"].astype("Int64")
events["homeCoachName"] = events.homeSquadCoachId.map(coaches_map)
events["awayCoachName"] = events.awaySquadCoachId.map(coaches_map)

if include_kpis:
# unnest scorings and full join with kpi list to ensure all kpis are present
Expand Down