I have several dataframes.
Dataframe #1
Feature Coeff
a 0.5
b 0.3
c 0.35
d 0.2
Dataframe #2
Feature Coeff
a 0.7
b 0.2
y 0.75
x 0.1
I want to merge this dataframe and obtain the following one:
Feature | DF1 | DF2
a 1 1
b 1 1
c 1 0
d 1 0
y 0 1
x 0 1
I know that I can do an outer merge but I do not know how to move from there to obtain the final dataframe I presented above. Any ideas?