Assuming the test dataset as follows:
id name1 name2
0 1 james James
1 2 Bond NaN
2 3 Steven NaN
3 4 Tom Kevin
4 5 Alba Tim
How could I replace name1's values with name2, except name2 are NaN?
The expected result:
id name1 name2
0 1 James James
1 2 Bond NaN
2 3 Steven NaN
3 4 Kevin Kevin
4 5 Tim Tim
Thanks.