I have the following data frames / CSVs:
df1=
Person apple ball
A 3 4
B 5 1
df2=
Person apple cat
A 3 6
B 5 2
df3=
Person apple cat
C 6 2
D 2 2
df4=
Person dog cat
C 1 2
D 1 2
I am interested in knowing the fastest way to merge and append these kinds of data frames without any duplicates based on 'Person'. The expected output looks like:
output=
Person apple ball cat dog
A 3 4 6 nan
B 5 1 2 nan
C 6 nan 2 1
D 2 nan 2 1