ForzaJuve1
commited on
Commit
•
de49b5a
1
Parent(s):
0206e6b
Update Integration.py
Browse files- Integration.py +3 -3
Integration.py
CHANGED
@@ -556,9 +556,9 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
556 |
for id, row in enumerate(reader):
|
557 |
|
558 |
match_event_str = row["MatchEvent"]
|
559 |
-
match_event_replaced = match_event_str.replace("'", '"')
|
560 |
-
match_event_replaced =
|
561 |
-
match_event =
|
562 |
|
563 |
team_linup_str = row["TeamLineUps"]
|
564 |
team_linup_replaced = team_linup_str.replace(": nan", ": None")
|
|
|
556 |
for id, row in enumerate(reader):
|
557 |
|
558 |
match_event_str = row["MatchEvent"]
|
559 |
+
#match_event_replaced = match_event_str.replace("'", '"')
|
560 |
+
match_event_replaced = match_event_str.replace("nan", "None")
|
561 |
+
match_event = st.literal_eval(match_event_replaced)
|
562 |
|
563 |
team_linup_str = row["TeamLineUps"]
|
564 |
team_linup_replaced = team_linup_str.replace(": nan", ": None")
|