ForzaJuve1
commited on
Commit
•
1b1d543
1
Parent(s):
3673beb
Update Integration.py
Browse files- Integration.py +5 -5
Integration.py
CHANGED
@@ -570,10 +570,10 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
570 |
team_stats_replaced = team_stats_replaced.replace(": nan", ": null")
|
571 |
team_stats = json.loads(team_stats_replaced)
|
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 = json.loads(player_stats_replaced)
|
577 |
|
578 |
pre_match_str = row["PlayerPreMatchInfo"]
|
579 |
pre_match_replaced = pre_match_str.replace("'", '"')
|
@@ -609,7 +609,7 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
609 |
#"MatchEvent": match_event,
|
610 |
"TeamLineUps": team_linup,
|
611 |
"TeamStats": team_stats,
|
612 |
-
"PlayerStats": player_stats,
|
613 |
"PlayerPreMatchInfo": pre_match_info,
|
614 |
}
|
615 |
|
|
|
570 |
team_stats_replaced = team_stats_replaced.replace(": nan", ": null")
|
571 |
team_stats = json.loads(team_stats_replaced)
|
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 = json.loads(player_stats_replaced)
|
577 |
|
578 |
pre_match_str = row["PlayerPreMatchInfo"]
|
579 |
pre_match_replaced = pre_match_str.replace("'", '"')
|
|
|
609 |
#"MatchEvent": match_event,
|
610 |
"TeamLineUps": team_linup,
|
611 |
"TeamStats": team_stats,
|
612 |
+
#"PlayerStats": player_stats,
|
613 |
"PlayerPreMatchInfo": pre_match_info,
|
614 |
}
|
615 |
|