I will describe some of the functions I investigated.
Extract only True. False corresponds to negation.
array[a == b,:]
array[a != b,:]
Other evaluation formulas can be used.
Reference site
python array. Logical operation by grouping elements. not, and, or, xor
Extract and delete elements / rows / columns that satisfy the conditions from the NumPy array ndarray
for i in range(array.shape[0]):
Reference site Convert list and tuple to each other in Python list (), tuple ()