# how i rwrite conditon to create 1 or 0 label from two probability column python

# np.where(condition, value if condition is true, value if condition is false) # can be apply on pandas datafram np.where(condition, value if condition is true, value if condition is false)

**Here is what the above code is Doing:**

1. The first argument is the condition.

2. The second argument is the value if the condition is True.

3. The third argument is the value if the condition is False.