0

If I have 2 Pandas dataframes like the below, how do I merge them on the Person column so that all columns are included in the merge and the observations are matched to the index(Person)? I don't want any of the index observations dropped and would like to have all columns populated(or blank if NaN).

df1

Person,Age,Hair
Derrick,22,Short
Nick,23,Long
Christian,24,NaN

df2

Person,Height,Eyes
Keenan,62,NaN
Nick,63,Green
Christian,64,Blue
Terry,58, Brown
Anthony,61,Brown
Will Wild
  • 137
  • 8

0 Answers0