Here is tow array
a=np.array([[0, 0, 0],[0, 2, 0],[0, 0, 0]])
b=np.array([0,1,0])
I try the code
print((b==a).any())
It returns True. What I want is to judge if b in a. How can I do it?
Here is tow array
a=np.array([[0, 0, 0],[0, 2, 0],[0, 0, 0]])
b=np.array([0,1,0])
I try the code
print((b==a).any())
It returns True. What I want is to judge if b in a. How can I do it?