Conditional merge for CSV files using python (pandas)
问题 I am trying to merge >=2 files with the same schema. The files will contain duplicate entries but rows won't be identical, for example: file1: store_id,address,phone 9191,9827 Park st,999999999 8181,543 Hello st,1111111111 file2: store_id,address,phone 9191,9827 Park st Apt82,999999999 7171,912 John st,87282728282 Expected output: 9191,9827 Park st Apt82,999999999 8181,543 Hello st,1111111111 7171,912 John st,87282728282 If you noticed : 9191,9827 Park st,999999999 and 9191,9827 Park st Apt82