Skip to content

Instantly share code, notes, and snippets.

@dipta007
Created June 7, 2020 13:44
Show Gist options
  • Select an option

  • Save dipta007/b4401b954752bad23439fc4a36ce4b86 to your computer and use it in GitHub Desktop.

Select an option

Save dipta007/b4401b954752bad23439fc4a36ce4b86 to your computer and use it in GitHub Desktop.
def merge_all(*args):
tmp = None
args = args[0]
for arg in args:
if tmp is None:
tmp = arg
else:
tmp = pd.merge(tmp, arg, how='inner', on=['id'])
return tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment