text_plain_output_1.png
import ast

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df_titles = pd.read_csv('../input/netflix-tv-shows-and-movies/titles.csv', nrows=5)
df_titles

df_titles = df_titles.loc[:5, ['title', 'genres']]
df_titles

a = df_titles['genres'].values
a

ast.literal_eval(a[0])

type(ast.literal_eval(a[0]))

df_titles['genres2'] = df_titles['genres'].apply(ast.literal_eval)
df_titles