Want to filter numpy array
based on a condition with using only numpy
sample = ["aple","mangp", "orange"]
np.where("p" in sample)
Op:
(array([], dtype=int64),)
Expected OP:
(array([1,1,0], dtype=int64),)
Pointers on my mistake would be great