np.where
Also written: where
`np.where(condition, x, y)` builds an array that takes each element from x where the condition is True and from y where it is False. It can be used to give different groups different probabilities.
Also written: where
`np.where(condition, x, y)` builds an array that takes each element from x where the condition is True and from y where it is False. It can be used to give different groups different probabilities.