ForzaJuve1 commited on
Commit
976b24e
1 Parent(s): caa2fd7

Update Integration.py

Browse files
Files changed (1) hide show
  1. Integration.py +4 -5
Integration.py CHANGED
@@ -555,13 +555,12 @@ class Euro2020Dataset(GeneratorBasedBuilder):
555
  reader = csv.DictReader(f)
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_str.replace(": nan", ": None")
566
  team_linup = ast.literal_eval(team_linup_replaced)
567
 
 
555
  reader = csv.DictReader(f)
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(": nan", ": None")
565
  team_linup = ast.literal_eval(team_linup_replaced)
566