Suppose I have a dataframe as below
a b c 1 1 45 0 2 74 2 2 54 1 4 44
Now I want the rows where column a and b are not same. So
Try this:
df.loc[df['a'] != df['b']]