I have a question concerning numpy.where. Beside a condition, the parameters of np.where require both x and y.
- x: x is yielded where the condition is true.
- y: y is yielded/used where the condition is not fulfilled.
The part of the related code could look like the following:
BypassZero = np.where(f > 0.00000000000001, f, -8.5)
My question is: is it possible to tell np.where that "nothing" for y instead of -8.5 should be used? An example: if the condition is to use values only higher than 0.00000000000001, as shown above in the code, and this condition is not fulfilled in one numeric value out of a row (of many values), np.where should ignore this step and directly jump to the next numeric value in the row, instead of using -8.5.