Skip to content

Instantly share code, notes, and snippets.

@Tony363
Last active March 18, 2022 13:47
Show Gist options
  • Save Tony363/939b861c55353d0358c249773d38a1ec to your computer and use it in GitHub Desktop.
Save Tony363/939b861c55353d0358c249773d38a1ec to your computer and use it in GitHub Desktop.
import pandas as pd
def load_abcdef():
abc = pd.read_excel('mock_data_abcde.xlsx')
def_ = pd.read_excel('mock_data_def.xlsx')
return abc.merge(def_,how='inner',on=['d','e'] # where the merging happens
if __name__ == "__main__":
abcdef = load_abcdef()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment