Using .loc to analyze if a number in a column is above or below a threshold and replacing it with 0s and 1s

后端 未结 0 1401
甜味超标
甜味超标 2020-12-15 03:57

I have a column with number values. I want to determine if the number in the column is above or below the number 30 and replace it with a 1 if its above and 0 if its below.

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