我有电影类型的数据。流派用“”分隔
id genres
0 drama romance
1 drama
2 comedy
3 mystery thriller
4 crime thriller
...
我想按类型划分它们(大约 20 个)
id drama romance comedy...
0 1 1 0
1 1 0 0
2 0 0 1
3 0 0 0
4 0 0 0
...
我正在考虑获得假人,但我认为这无济于事。