Answers for "check if all rows are equal numpy"

5

check if numpy arrays are equal

(A==B).all()
Posted by: Guest on July-23-2020
0

python find equal rows of two numpy arrays

import numpy as np
x = np.array([[0,1],[2,0],[3,0]])
y = np.array([2,0])
Ind = np.where((x == y).all(1))[0][0]
print("Index of y in x:", Ind)
Posted by: Guest on December-15-2021

Code answers related to "check if all rows are equal numpy"

Python Answers by Framework

Browse Popular Code Answers by Language