SyntaxFix
Write A Post
Hire A Developer
Questions
I've been usually doing generic filtering over rows like this:
criterion = lambda row: row['countries'] not in countries not_in = df[df.apply(criterion, axis=1)]