I have this dataframe with two column['c1','c2']
, and I want to fill c2
with its corresponding c1
if exist, also if c1
already have a value keep it don't change it with c2
. Here is an example:
input
c1 c2
HP_0003470
HP_8362789 HP_0093723
MP_0000231
MP_0000231
output
c1 c2
HP_0003470
HP_8362789 HP_0093723
MP_0000231 MP_0000231
MP_0000231 MP_0000231
It's look easy, but I'm beginner in python :( Any help please.