ForzaJuve1 commited on
Commit
5e1ea45
1 Parent(s): ffe368b

Update Integration.py

Browse files
Files changed (1) hide show
  1. Integration.py +4 -2
Integration.py CHANGED
@@ -556,11 +556,13 @@ class Euro2020Dataset(GeneratorBasedBuilder):
556
  for id, row in enumerate(reader):
557
 
558
  match_event_str = row["MatchEvent"]
559
- match_event_replaced = match_event_str.replace({"'": '"', ": nan": ": null"})
 
560
  match_event = json.loads(match_event_replaced)
561
 
562
  team_linup_str = row["TeamLineUps"]
563
- team_linup_replaced = team_linup_str.replace({"'": '"', ": nan": ": null"})
 
564
  team_linup = json.loads(team_linup_replaced)
565
 
566
  yield id, {
 
556
  for id, row in enumerate(reader):
557
 
558
  match_event_str = row["MatchEvent"]
559
+ match_event_replaced = match_event_str.replace("'", '"')
560
+ match_event_replaced = match_event_replaced.replace(": nan", ": null")
561
  match_event = json.loads(match_event_replaced)
562
 
563
  team_linup_str = row["TeamLineUps"]
564
+ team_linup_replaced = team_linup_str.replace("'", '"')
565
+ team_linup_replaced = team_linup_replaced.replace(": nan", ": null")
566
  team_linup = json.loads(team_linup_replaced)
567
 
568
  yield id, {