I have a df where two column values have True, False or NaN
df
a b c
0 a True NaN
1 b False True
2 c NaN False
3 d NaN NaN
4 e False NaN
5 f True False
I'm trying to convert the values in columns b and c.
If True comes in one column, another will be False If NaN present change that False.
Similarly for False. If NaN is present in both columns. Change both values to False
Resultant df:
a b c
0 a True False
1 b False True
2 c True False
3 d False False
4 e False True
5 f True False