Last active
July 10, 2017 23:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a faster way to do a large vlookup using a Python.