Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created April 21, 2019 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/98731f9c43ce5bf6e0c1db2e3cf61201 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/98731f9c43ce5bf6e0c1db2e3cf61201 to your computer and use it in GitHub Desktop.
genre_split_id_plot
movie_id = []
plot = []
# extract movie Ids and plot summaries
for i in tqdm(plots):
movie_id.append(i[0])
plot.append(i[1])
# create dataframe
movies = pd.DataFrame({'movie_id': movie_id, 'plot': plot})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment