From aef90dfe988e470379e69fd926bf4ffd08166b86 Mon Sep 17 00:00:00 2001 From: who who who Date: Fri, 8 Sep 2023 06:17:50 +0000 Subject: [PATCH] fix encoding --- .../movielens_recommendations_transformers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/structured_data/movielens_recommendations_transformers.py b/examples/structured_data/movielens_recommendations_transformers.py index bf979d0b31..223d1ecee0 100644 --- a/examples/structured_data/movielens_recommendations_transformers.py +++ b/examples/structured_data/movielens_recommendations_transformers.py @@ -92,7 +92,10 @@ ) movies = pd.read_csv( - "ml-1m/movies.dat", sep="::", names=["movie_id", "title", "genres"] + "ml-1m/movies.dat", + sep="::", + names=["movie_id", "title", "genres"], + encoding = "ISO-8859-1", ) """