I am trying to put 0 or 1 in place of the null rows of a column using lambda function, but my code doesn't make any changes in the data.
df[df['a'].isnull()]['a']=df[df['a'].isnull()].apply(lambda x:1 if (x.b==0 and x.c==0) else
0,axis=1)
Where I am wrong in this?? sample table