The following code will print True because the Series contains at least one element that is greater than 1. However, it seems a bit un-Pythonic. Is there a more Pythonic way to return True if a Series contains a number that is greater than a particular value?
import pandas as pd
s = pd.Series([0.5, 2])
print True in (s > 1) # True
Not only is the above answer un-Pythonic, it will sometimes return an incorrect result for some reason. For example:
s = pd.Series([0.5])
print True in (s < 1) # False