Skip to content

Instantly share code, notes, and snippets.

@arcaduf
Created July 17, 2018 15:03
Show Gist options
  • Save arcaduf/44007246866b61a004f8989032a9ee5f to your computer and use it in GitHub Desktop.
Save arcaduf/44007246866b61a004f8989032a9ee5f to your computer and use it in GitHub Desktop.
Pandas: difference between dataframes
merged = df1.merge(df2, indicator=True, how='outer')
merged[merged['_merge'] == 'left_only']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment