Delete collect_movieId2id.py
Browse files- collect_movieId2id.py +0 -11
collect_movieId2id.py
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
import json, csv
|
2 |
-
|
3 |
-
movieId2id = {}
|
4 |
-
|
5 |
-
with open("../redial/movies_merged.csv") as f:
|
6 |
-
for row in csv.reader(f):
|
7 |
-
if row[0] != "index":
|
8 |
-
movieId2id[row[3]] = row[2]
|
9 |
-
|
10 |
-
with open("movieId2id.json", 'w') as f2:
|
11 |
-
json.dump(movieId2id, f2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|