所以我正在使用一个数据框,它有一列,其中基本上列出了适用于电影的所有流派,例如:
Genres
0 Action, Adventure, Fantasy, Science Fiction
1 Adventure, Fantasy, Action
2 Action, Adventure, Crime
3 Action, Crime, Drama, Thriller
4 Action, Adventure, Science Fiction
...
4798 Action, Crime, Thriller
4799 Comedy, Romance
4800 Comedy, Drama, Romance, TV Movie
4801
4802 Documentary
基本上,我想为该类型创建假人,但是当应用多个类别变量时,我很难这样做,有什么办法可以做到这一点? 谢谢!