![](/img/trans.png)
[英]find difference between any two columns of dataframes with a common key column pandas
[英]How can i find the difference between two dataframes on key column and remove the unique records from both dataframes
我想比較基於 key(branch) 的兩個 daraframes,並計划基於 key 刪除兩個數據集中不匹配的記錄。
我想你想要一個內部合並
df1.merge(df2, on='branch', how='inner')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.