Skip to content

Instantly share code, notes, and snippets.

@jvolkov
Last active July 10, 2017 23:07
Show Gist options
  • Save jvolkov/2c546b7bb7a79015f0dce1ac3fde87d0 to your computer and use it in GitHub Desktop.
Save jvolkov/2c546b7bb7a79015f0dce1ac3fde87d0 to your computer and use it in GitHub Desktop.
Quick and dirty way to append data between 2 files instead using an Excel vlookup
import pandas as pd
data = pd.read_csv('desktop/data.csv')
ind = pd.read_csv('desktop/index.csv')
data = data.set_index('org')
ind = ind.set_index('org')
data.info()
ind.info()
join = ind.join(data)
join.info()
join.to_csv('desktop/join.csv')
@jvolkov
Copy link
Author

jvolkov commented Jul 10, 2017

This is a faster way to do a large vlookup using a Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment