pandas dataframe check for values more then a number
In [36]: (s > 1).any() Out[36]: True
Here is what the above code is Doing:
1. We create a Series object with the values 1, 2, 3, 4, 5.
2. We then use the Series.any() method to check if any of the values are greater than 1.
3. The result is True, because 2 is greater than 1.