How to find dropped data after using Pandas merge in python?

后端 未结 2 401
误落风尘
误落风尘 2021-01-14 14:31

My Dataframe looks like following.I am using Pandas merge function to merge two dataframes, and I am trying to find row that was dropped. Is there a way in Pandas or python

2条回答
  •  醉梦人生
    2021-01-14 15:03

    merge = pd.merge(df1,df2,on='Name', indicator=True, how='outer')
    print (merge)
    #drop dataframe
    del df1
    del df2
    

提交回复
热议问题