python - 获取具有多个变量的列的假人
问题描述
所以我正在使用一个数据框,它有一个列,其中基本上列出了适用于电影的所有类型,如下所示:
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
基本上我想为这些类型创建假人,但是当应用几个分类变量时我很难做到这一点,有什么办法可以做到这一点吗?谢谢!
解决方案
推荐阅读
- php - 如何计算两个日期之间的月份,包括起始日期月份?
- excel - 运行时错误 91 对象错误对象变量未设置
- python - VS 中的随机密码生成器 - Python 3
- bash - 如何将命令输出放入变量中
- windows - SendKeys.SendWait 不支持某些修饰符吗?
- python - 从运行循环启动异步循环
- javascript - 悬停时显示工具提示的 HTML 元素
- ssl - 基于操作系统的证书(ca-bundle.crt)使用 smtp_tls_CAfile 可以正常工作吗
- domain-driven-design - 如何检查将子 DDD 实体添加到父(树状结构)实体是否不会在另一棵树中循环
- scala - 类型与 akka.http.scaladsl.server.Route 不匹配