DataFrame.
equals
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.eq(1) a b a True True b False False c False True d False False