Conditional Logic
General Info
Useful Snippets

10.0.10 CASE WHEN logic - Option 2 np.where

Example:

# Create a new column 
DF['New_Column']  = np.where(DF['B'] == 'b' , 'value_if_true', 'value_if_false')