SyntaxFix
Write A Post
Hire A Developer
Questions
Use lambda expression:
df[df.apply(lambda x: x['col1'] != x['col2'], axis = 1)]