I have a dataframe like this:
movie_id genres
0 2 [1,2]
1 3 [1,3]
2 4 [2,4]
I want to make groups of movies (with duplication) according to genre types. Like this:
genre_group movie_id genres
0 1 2 [1,2]
1 3 [1,3]
0 2 2 [1,2]
2 4 [2,4]
1 3 3 [1,3]
2 4 4 [2,4]
