I have 2n columns and each pair looks like this:
1   0
2   0
45  1
44  10
43  22
0   55
0   46
0   75
I want to turn each pair of columns into a single one where the 0 or NaN of the left column are substituted by the values on the right column. In this example the result would be
1
2
45
44
43
55
46
75
And it is important that this is done for every pair of columns in the dataframe.
 
     
    