pyspark.pandas.Series.ne#

Series.ne(other)[source]#

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