python how to compare 2 numpy arrays code example Example: check if numpy arrays are equal (A==B).all()