NumPy Arithmetic and Statistics - Comparison and Boolean Masks
3. Comparisons and Boolean Masks
a. Comparisons
In this world reigned by the social media, the trap of making comparisons is just about everywhere. So, staying true to the culture of making comparisons, let’s talk about comparisons in NumPy
NumPy provides comparison operators such as less than and greater than as element-wise functions. The result of these comparison operators is always an array with a Boolean data type, i.e., we get boolean array as output which ...
Access this course and 1400+ top-rated courses and projects.