I have this dataset:
pd.DataFrame(data={'ID':['1','2','3'],'Genre':['Adventure|Children|Fantasy','Horror','Comedy|Drama']})
    ID  Genre
0   1   Adventure|Children|Fantasy
1   2   Horror
2   3   Comedy|Drama
I want it to look like this:
    ID  Genre
0   1   Adventure
1   1   Children
2   1   Fantasy
3   2   Horror
4   3   Comedy
5   3   Drama
How can I do it with Pandas?
 
     
    