Let's say I have an array:
a = np.array([1,2,3,4,5])
And then I have a Boolean array
b = np.array([False, False, True, True, True])
I would like the values of 'True' in b to make the values in a = 0, otherwise, retain the values of a. In other words, I want something like:
c = a[b]
except this deletes any instances of 'False'. I would want the answer to be [1,2,0,0,0]