ForzaJuve1
commited on
Commit
•
9b5a98c
1
Parent(s):
af404bf
Update Integration.py
Browse files- Integration.py +2 -2
Integration.py
CHANGED
@@ -556,7 +556,7 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
556 |
for id, row in enumerate(reader):
|
557 |
|
558 |
match_event_str = row["MatchEvent"]
|
559 |
-
|
560 |
|
561 |
team_linup_str = row["TeamLineUps"]
|
562 |
team_linup_replaced = team_linup_str.replace(": nan", ": None")
|
@@ -588,7 +588,7 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
588 |
"Humidity": row["Humidity"],
|
589 |
"Temperature": row["Temperature"],
|
590 |
"WindSpeed": row["WindSpeed"],
|
591 |
-
"MatchEvent":
|
592 |
"TeamLineUps": team_linup,
|
593 |
#"TeamStats": team_stats,
|
594 |
#"PlayerStats": player_stats,
|
|
|
556 |
for id, row in enumerate(reader):
|
557 |
|
558 |
match_event_str = row["MatchEvent"]
|
559 |
+
match_event = ast.literal_eval(match_event_str)
|
560 |
|
561 |
team_linup_str = row["TeamLineUps"]
|
562 |
team_linup_replaced = team_linup_str.replace(": nan", ": None")
|
|
|
588 |
"Humidity": row["Humidity"],
|
589 |
"Temperature": row["Temperature"],
|
590 |
"WindSpeed": row["WindSpeed"],
|
591 |
+
"MatchEvent": match_event,
|
592 |
"TeamLineUps": team_linup,
|
593 |
#"TeamStats": team_stats,
|
594 |
#"PlayerStats": player_stats,
|