How do you create df column using str.contains to assign rows by category?

前端 未结 0 684
悲&欢浪女
悲&欢浪女 2021-02-18 23:03

I want to add a column to a df and I want the values for the rows of that column to be a category based on strings contained in another attribute in the data.

For example

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