我有一个熊猫数据框,看起来像这样:
**ReviewerID** **ReviewText** **Categories** **ProductId**
1212 good product Mobile 14444425
1233 will buy again drugs 324532
5432 not recomended Mobile 789654123
我要删除类别值至少两次未出现的所有行。 结果数据帧应如下所示:
**ReviewerID** **ReviewText** **Categories** **ProductId**
1212 good product Mobile 14444425
5432 not recomended Mobile 789654123
我刚接触Python和熊猫,非常感谢您的帮助
我想你需要^{} :
Docs
相关问题 更多 >
编程相关推荐