ForzaJuve1 commited on
Commit
34a90bb
1 Parent(s): 66d3334

Update Integration.py

Browse files
Files changed (1) hide show
  1. Integration.py +3 -2
Integration.py CHANGED
@@ -571,8 +571,9 @@ class Euro2020Dataset(GeneratorBasedBuilder):
571
  #team_stats = json.loads(team_stats_str)
572
 
573
  player_stats_str = row["PlayerStats"]
574
- player_stats_replaced = player_stats_str.replace("'", '"')
575
- player_stats_replaced = player_stats_replaced.replace(": nan", ": null")
 
576
  player_stats = yaml.safe_load(player_stats_replaced)
577
 
578
  #pre_match_str = row["PlayerPreMatchInfo"]
 
571
  #team_stats = json.loads(team_stats_str)
572
 
573
  player_stats_str = row["PlayerStats"]
574
+ #player_stats_replaced = player_stats_str.replace("'", '"')
575
+ #player_stats_replaced = player_stats_replaced.replace(": nan", ": null")
576
+ player_stats_replaced = player_stats_str.replace('"', '\"')
577
  player_stats = yaml.safe_load(player_stats_replaced)
578
 
579
  #pre_match_str = row["PlayerPreMatchInfo"]