genre_extract_genres
# 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