A Python executable for merging CSV files with shared columns.
Though there are many CSV manipulation tools out there, I was seriously struggling to find a simple CLI tool for merging CSV file (while taking into consideration all of the various caveats which may be encountered; e.g. columns not being in the same order, files not sharing certain columns, etc.). This script performs this task using the magic of the Pandas library.
Python 3 (version 3.6 or greater) is required to run this project.
You can install the script using:
python3 setup.py install
And run it using:
csv-merge -h
The script can be run as follows:
csv-merge file_1.csv file_2.csv file_n.csv... > file_combined.csv
The command has an easy to access help menu using the -h
option:
csv-merge -h