text_plain_output_1.png
import numpy as np # linear algebra

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

genres2_length = list(map(len, df_titles['genres2'].values))
genres2_length

df_titles_normalised = pd.DataFrame({'title': np.repeat(df_titles['title'], genres2_length), 'genres3': np.concatenate(df_titles['genres2'].values)})
df_titles_normalised

np.concatenate(df_titles['genres2'].values)

np.repeat(df_titles['title'], genres2_length)