Numpy compare arrays

Code examples

4
0

check if numpy arrays are equal

(A==B).all()
1
0

numpy compare arrays

bool isEqual = numpy.array_equal(Array1, Array2)
0
0

np.array_equal

# np.array_equal checks whether two arrays have the same
# shape and all elements values

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................