Skip to content

Instantly share code, notes, and snippets.

@chirag64
Created March 26, 2022 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chirag64/b3a34e872448af56eebcbbbdd5369807 to your computer and use it in GitHub Desktop.
Save chirag64/b3a34e872448af56eebcbbbdd5369807 to your computer and use it in GitHub Desktop.
### Merge two dataframes when both have a common column with common values (e.g. id)
pd.merge(df1, df2, how='inner', on='id')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment