Difference between numpy.logical_and and &
@user1121588 answered most of this in a comment, but to answer fully… “Bitwise and” (&) behaves much the same as logical_and on boolean arrays, but it doesn’t convey the intent as well as using logical_and, and raises the possibility of getting misleading answers in non-trivial cases (packed or sparse arrays, maybe). To use logical_and on … Read more