I am trying to join two dataframes, one has Id's and phone numbers, another one has bunch of other columns along with same Id field (however there are some duplicate Id's in this DF). How can I join the phone number column from first dataframe to the second one? I tried doing this but I am getting duplicated key error:
df= df.join(other.set_index('Id'), on='Id', how='outer')
How can I accomplish this? (I want duplicate ID's in second DF to have same phone numbers as non-duplicate ones)