Create a new column in Dataframe based on condition being check. I want to check value of a column for multiple values and then assign it a value

前端 未结 0 621
清酒与你
清酒与你 2021-01-15 12:35

Here is what I am doing now:

df1.loc[df1[\'Product\'] == "Bat",\'Category\'] = "Sports"
df1.loc[df1[\'Product\'] == "Medicine",\         


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