pyspark.pandas.Series.equals

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

Compare if the current value is equal to 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     True
b    False
c    False
d    False
Name: a, dtype: bool
>>> df.b.eq(1)
a     True
b    False
c     True
d    False
Name: b, dtype: bool