Skip to content

clayliddell/csv-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSV Merge

A Python executable for merging CSV files with shared columns.

Why?

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.

Dependencies

Python 3 (version 3.6 or greater) is required to run this project.

Installation

You can install the script using:

python3 setup.py install

And run it using:

csv-merge -h

Usage

The script can be run as follows:

csv-merge file_1.csv file_2.csv file_n.csv... > file_combined.csv

Help!

The command has an easy to access help menu using the -h option:

csv-merge -h