I want to remove all rows where Column "a" value = Column "b" value from the DataFrame like this:
a b
1 AAA BBB
2 AAA CCC
3 AAA AAA
4 CCC CCC
5 CCC BBB
6 CCC DDD
Desired output:
a b
1 AAA BBB
2 AAA CCC
3 CCC BBB
4 CCC DDD
you can drop the duplicates like this.
df = df.drop_duplicates()