Merge two CSV files with pandas
Project description
Merge CSV
Simple package for merging two CSV files with pandas based on values in a given column.
This module is required over pd.merge due to proper handling of rows with empty values.
Install
pip install merge_csv_xjg
Usage
As CLI Tool
Usage: merge_csv [OPTIONS]
Options:
-l, --left-file TEXT One of two CSVs to be merged
-r, --right-file TEXT Two of two CSVs to be merged
-c, --column TEXT Name of column to match entries
-o, --output TEXT Output file path
-k, --keep [left|right|both|none]
Table to keep values from if no match is
found
--keep-missing [left|right|both|none]
Keep rows where value in named column is
null
-v, --verbose Output extra information
--help Show this message and exit.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
merge_csv_xjg-0.0.3.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for merge_csv_xjg-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04618c2e92be008b832bd09b7182250abcb761af1f9011c983143d4b29f2c13f |
|
MD5 | 5a9838d5346dfaa2e17167009a67acde |
|
BLAKE2b-256 | 4487cf9ebc8de8a784c7ecaecbd4a5411a5f88d059c2c1a7e6646a6966d78e61 |