xsv join name data.csv name emp-ids.csv

Category: Data Science & Analysis

xsv join name data.csv name emp-ids.csv

Join two CSVs on their name columns

The join command merges two CSV files on a key column, taking the column name, first file, second column name, and second file as four arguments. Here data.csv and emp-ids.csv share the name field, and matching rows combine their columns. Rows without a match in the other file are dropped by default. Add --left to keep all rows of the first file, like a SQL LEFT JOIN.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.