我有一个包含以下内容的数据帧:如何将列拆分成多行(使用管道作为分隔符)?
movieId/movieName/genre
1 example1 action|thriller|romance
2 example2 fantastic|action
我想获得第二数据框(从第一个),包含以下内容:
movieId/movieName/genre
1 example1 action
1 example1 thriller
1 example1 romance
2 example2 fantastic
2 example2 action
我怎么能这样做?