pyspark.pandas.Series.gt

Series.gt(other: Any) → pyspark.pandas.series.Series

Compare if the current value is greater than the other.

>>> df = ps.DataFrame({'a': [1, 2, 3, 4],
...                    'b': [1, np.nan, 1, np.nan]},
...                   index=['a', 'b', 'c', 'd'], columns=['a', 'b'])
>>> df.a > 1
a    False
b     True
c     True
d     True
Name: a, dtype: bool
>>> df.b.gt(1)
a    False
b    False
c    False
d    False
Name: b, dtype: bool