SyntaxFix
Write A Post
Hire A Developer
Questions
I think a nice solution is with the function filter of pandas and regex (match everything except "b"):
df.filter(regex="^(?!b$)")