📜  pd.merge 重复列删除 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:50.356000             🧑  作者: Mango

代码示例3
#Create test data
df1 = pd.DataFrame(np.random.randint(100,size=(1000, 3)),columns=['A','B','C'])
df2 = pd.DataFrame(np.random.randint(100,size=(1000, 3)),columns=['B','C','D'])

pd.merge(df1, df2, how='inner', left_on=['B','C'], right_on=['B','C'])