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

Update Integration.py

Browse files
Files changed (1) hide show
  1. Integration.py +2 -1
Integration.py CHANGED
@@ -5,6 +5,7 @@ import csv
5
  import sys
6
  import ast
7
  import json
 
8
 
9
  class Euro2020Dataset(GeneratorBasedBuilder):
10
  VERSION = "1.0.0"
@@ -572,7 +573,7 @@ class Euro2020Dataset(GeneratorBasedBuilder):
572
  player_stats_str = row["PlayerStats"]
573
  player_stats_replaced = player_stats_str.replace("'", '"')
574
  player_stats_replaced = player_stats_replaced.replace(": nan", ": null")
575
- player_stats = eval(player_stats_replaced)
576
 
577
  #pre_match_str = row["PlayerPreMatchInfo"]
578
  #pre_match_replaced = pre_match_str.replace("'", '"')
 
5
  import sys
6
  import ast
7
  import json
8
+ import yaml
9
 
10
  class Euro2020Dataset(GeneratorBasedBuilder):
11
  VERSION = "1.0.0"
 
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"]
579
  #pre_match_replaced = pre_match_str.replace("'", '"')