I have the following dataframe:
A B C
0 NaN NaN cat
1 dog NaN NaN
2 NaN cat NaN
3 NaN NaN dog
I would like to add a colunm with the value that doesnt have the NaN value. So that:
A B C D
0 NaN NaN cat cat
1 dog NaN NaN dog
2 NaN cat NaN cat
3 NaN NaN dog dog
would it be using an lambda function? or fillna? Any help would be appreciated! Thanks!