I have two dataframes that I concatenate, and I change the names of the second one to match the first one right after, I would like to know if there was a possibility on Python to merge two duplicated columns? (The idea is that the Nans are replaced for all the identical columns if the value is non-null in the other one.)
Precision: I know I could change the name of my columns and then concatenate, but this leads to an index error that I can't solve
Example:
Info_r1_c1 Info_r1_c1
nan nan
nan 198
300 nan
nan nan
600 nan
nan 460
6.9 nan
And I would like this result, a remaining column with replaced values for all identical columns
Info_r1_c1
nan
198
300
nan
600
460
6.9
Thx for any help because I'm really stuck with this duplicated things