I have this problem, where there are two pandas dataframes which both has inaccurate value
df1 = pd.DataFrame({'F_Name': ['Alice', 'Bob', 'Charlie', 'Dave'], 'L_Name': ['Smith', 'Sharma', 'Puth', 'Bautista'], 'Age':[15, 24, 32, 40]})
df2 = pd.DataFrame({'F_Name': ['Charlie', 'David', 'Eve', 'Alice'], 'L_Name': ['Puth', 'Bautista', 'Angeline', 'Wonderland'], 'Age':[32,19,21,16]})
How can I do an outer merge for both of the dataframe and identify the value of that did not merged with each other
I have try using normal outer join
df_merge = pd.merge(df1, df2, how='outer' , on =['F_Name', 'L_Name', 'Age']
but it will only combine the data frame into single dataframe
The dataframe that I am expecting after merging should be something like this:
Any Idea how to achieve this? Thanks