>>> import pandas as pd
>>> df = pd.DataFrame([['123', 'Anime|Action'], ['321', 'Adventure|Comedy']], columns=['title', 'genre'])
>>> df
title genre
0 123 Anime|Action
1 321 Adventure|Comedy
>>> df['genre'] = df['genre'].apply(lambda x: x.split('|'))
>>> df
title genre
0 123 [Anime, Action]
1 321 [Adventure, Comedy]
>>> df.explode('genre')
title genre
0 123 Anime
0 123 Action
1 321 Adventure
1 321 Comedy