If you want to get the row whose ALL values satisfy a certain condition, use numpy’s all
method. To get the row whose AT LEAST one value satisfies a certain condition, use numpy’s any
method.
The code above shows the difference in outputs between all and any.