两个DataFarame,存在相同的内容,也存在不同的内容,找出其中不同的内容。可以通过元素删除来间接实现:
df3 = df1.append(df2).drop_duplicates(keep=False)