keep only rows greater than 0 pandas code example Example: pandas dataframe check for values more then a number In [36]: (s > 1).any() Out[36]: True