i have the following frame:
col1 col1
null hi
hello null
I am trying to merge the two columns as they have the same name:
col1
hi
hello
I am using:
result= result.groupby(result.columns, axis=1).first()
But the first() applies it to the whole column so i get:
col1
hi
null
Anyone to merge the columns and avoid the null values.