I have 3 columns. I want to update the third column, status
, if the first column, a
is greater than or equal to column b
+ 0.50. I've tried this following code but cannot get it to work:
if df['a'] >= (df['b'] + 0.50):
df['status'] = 1
status
is already populated with zeros.
how would i go about this?