Created
April 21, 2019 12:05
-
-
Save prateekjoshi565/609b5ae0b81cfe9d76aae52ce003ec8c to your computer and use it in GitHub Desktop.
genre_extract_genres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# an empty list | |
genres = [] | |
# extract genres | |
for i in movies['genre']: | |
genres.append(list(json.loads(i).values())) | |
# add to 'movies' dataframe | |
movies['genre_new'] = genres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment