takes a value of 1 or 0 column pandas if superior to code example Example: pandas dataframe check for values more then a number In [36]: (s > 1).any() Out[36]: True