Update logic.py
Browse files
logic.py
CHANGED
@@ -37,7 +37,7 @@ def convert_int(x):
|
|
37 |
return np.nan
|
38 |
|
39 |
|
40 |
-
def remove_movies(
|
41 |
'''
|
42 |
# Remove ids which dont have meta data information
|
43 |
'''
|
@@ -251,7 +251,7 @@ def make_graph():
|
|
251 |
id_map = id_map.merge(sampled_md[['title', 'id']], on='id').set_index('title') # tmbdid is same (of links_small) as of id in sampled_md
|
252 |
indices_map = id_map.set_index('id')
|
253 |
|
254 |
-
no_metadata = remove_movies(
|
255 |
|
256 |
## remove ids which dont have meta data information
|
257 |
for element in no_metadata:
|
|
|
37 |
return np.nan
|
38 |
|
39 |
|
40 |
+
def remove_movies():
|
41 |
'''
|
42 |
# Remove ids which dont have meta data information
|
43 |
'''
|
|
|
251 |
id_map = id_map.merge(sampled_md[['title', 'id']], on='id').set_index('title') # tmbdid is same (of links_small) as of id in sampled_md
|
252 |
indices_map = id_map.set_index('id')
|
253 |
|
254 |
+
no_metadata = remove_movies()
|
255 |
|
256 |
## remove ids which dont have meta data information
|
257 |
for element in no_metadata:
|