Retaining n number of categories in a column

前端 未结 0 337
感动是毒
感动是毒 2020-12-10 09:36

I have a data frame and would like to only retain n number of categories in selected columns. For example, in column Cat_1 I would like to only retain the top 3 most populou

相关标签:
回答
  • 消灭零回复
提交回复
热议问题