I have 2 columns A and B ,
Column A Column B
1
2 4
3
I want to replace ColumnA with ColumnB but it should only replace non-empty values .
Expected output
coulmnA
1
4
3
and it should not be
CoulmnA
4
please let me know how can I achieve this , I tries to use df.replace but it copies all the values .