Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by www.dataquest.io #
 
PREVIOUS NEXT
Tagged: #rwrite #conditon #create #label #probability #column #python
ADD COMMENT
Topic
Name
6+3 =