I have an array e.g.
a = [5,1,3,0,2]
I apply the where function:
np.where(a == 2)
The output is an empty array
(array([], dtype=int64),)
I found kind of the same problem here, but in my case it really dosen't make any sense or dose it?
Btw. i'm on a Mac using Python 2.7.10
ais a list, not a numpy array.a==2, and then passes the result to thewherefunction. Does thata==2make sense?