The last part of this sentence is a little confusing to me.
maybe: numpy.where accepts a boolean condition and two arrays of the same shape, returning values from one array or the other depending on the condition.