jamescalam
commited on
Commit
•
7a6e543
1
Parent(s):
2bb0fd7
Update movielens-recent-ratings.py
Browse files
movielens-recent-ratings.py
CHANGED
@@ -79,7 +79,7 @@ class MovieLens(datasets.GeneratorBasedBuilder):
|
|
79 |
df = df.merge(posters, left_on='imdb_id', right_on='imdbId')
|
80 |
# we also don't need all columns
|
81 |
df = df[
|
82 |
-
["imdb_id", "movie_id", "user_id", "rating", "title"]
|
83 |
]
|
84 |
# save
|
85 |
df.to_json(new_url+"/ratings.jsonl", orient="records", lines=True)
|
|
|
79 |
df = df.merge(posters, left_on='imdb_id', right_on='imdbId')
|
80 |
# we also don't need all columns
|
81 |
df = df[
|
82 |
+
["imdb_id", "movie_id", "user_id", "rating", "title", "poster"]
|
83 |
]
|
84 |
# save
|
85 |
df.to_json(new_url+"/ratings.jsonl", orient="records", lines=True)
|