0

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?

user2155362
  • 1,657
  • 5
  • 18
  • 30
  • 1
    What do you mean by "judge"? What should the result be, and according to what reasoning? What steps should be taken in order to check? – Karl Knechtel Apr 09 '23 at 01:36

0 Answers0