SyntaxFix
Write A Post
Hire A Developer
Questions
This doesn't work because NaN isn't equal to anything, including NaN. Use pd.isnull(df.var2) instead.
NaN
pd.isnull(df.var2)