ForzaJuve1 commited on
Commit
db3bd6b
1 Parent(s): 1b1d543

Update Integration.py

Browse files
Files changed (1) hide show
  1. Integration.py +5 -5
Integration.py CHANGED
@@ -575,10 +575,10 @@ class Euro2020Dataset(GeneratorBasedBuilder):
575
  #player_stats_replaced = player_stats_replaced.replace(": nan", ": null")
576
  #player_stats = json.loads(player_stats_replaced)
577
 
578
- pre_match_str = row["PlayerPreMatchInfo"]
579
- pre_match_replaced = pre_match_str.replace("'", '"')
580
- pre_match_replaced = pre_match_replaced.replace(": nan", ": null")
581
- pre_match_info = json.loads(pre_match_replaced)
582
 
583
  yield id, {
584
  "HomeTeamName": row["HomeTeamName"],
@@ -610,6 +610,6 @@ class Euro2020Dataset(GeneratorBasedBuilder):
610
  "TeamLineUps": team_linup,
611
  "TeamStats": team_stats,
612
  #"PlayerStats": player_stats,
613
- "PlayerPreMatchInfo": pre_match_info,
614
  }
615
 
 
575
  #player_stats_replaced = player_stats_replaced.replace(": nan", ": null")
576
  #player_stats = json.loads(player_stats_replaced)
577
 
578
+ #pre_match_str = row["PlayerPreMatchInfo"]
579
+ #pre_match_replaced = pre_match_str.replace("'", '"')
580
+ #pre_match_replaced = pre_match_replaced.replace(": nan", ": null")
581
+ #pre_match_info = json.loads(pre_match_replaced)
582
 
583
  yield id, {
584
  "HomeTeamName": row["HomeTeamName"],
 
610
  "TeamLineUps": team_linup,
611
  "TeamStats": team_stats,
612
  #"PlayerStats": player_stats,
613
+ #"PlayerPreMatchInfo": pre_match_info,
614
  }
615