ForzaJuve1
commited on
Commit
•
caa2fd7
1
Parent(s):
e03fafd
Update Integration.py
Browse files- Integration.py +7 -7
Integration.py
CHANGED
@@ -561,14 +561,14 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
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 =
|
566 |
team_linup = ast.literal_eval(team_linup_replaced)
|
567 |
|
568 |
-
team_stats_str = row["TeamStats"]
|
569 |
-
team_stats_replaced = team_stats_str.replace("'", '"')
|
570 |
-
team_stats_replaced =
|
571 |
-
team_stats = json.loads(team_stats_replaced)
|
572 |
|
573 |
#player_stats_str = row["PlayerStats"]
|
574 |
#player_stats_replaced = player_stats_str.replace("'", '"')
|
@@ -608,7 +608,7 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
608 |
"WindSpeed": row["WindSpeed"],
|
609 |
#"MatchEvent": match_event,
|
610 |
"TeamLineUps": team_linup,
|
611 |
-
"TeamStats": team_stats,
|
612 |
#"PlayerStats": player_stats,
|
613 |
#"PlayerPreMatchInfo": pre_match_info,
|
614 |
}
|
|
|
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 |
|
568 |
+
#team_stats_str = row["TeamStats"]
|
569 |
+
#team_stats_replaced = team_stats_str.replace("'", '"')
|
570 |
+
#team_stats_replaced = team_stats_str.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("'", '"')
|
|
|
608 |
"WindSpeed": row["WindSpeed"],
|
609 |
#"MatchEvent": match_event,
|
610 |
"TeamLineUps": team_linup,
|
611 |
+
#"TeamStats": team_stats,
|
612 |
#"PlayerStats": player_stats,
|
613 |
#"PlayerPreMatchInfo": pre_match_info,
|
614 |
}
|