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.
TODO
- Only copy specific columns from each of the sheets
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.6.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file merge_csv_xjg-0.0.6.tar.gz.
File metadata
- Download URL: merge_csv_xjg-0.0.6.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17d35dd62509b905816497b619cebd8bc0a8f9ed410cdb476bd8c95fee2f5348
|
|
| MD5 |
b8271da6a37e397c9e890f89b4504057
|
|
| BLAKE2b-256 |
1d847c99c3878e4cc51f3ec8a9018080e8456129129d3a81c9caa2e297dc50e7
|
File details
Details for the file merge_csv_xjg-0.0.6-py3-none-any.whl.
File metadata
- Download URL: merge_csv_xjg-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02077d785aa830a97751c8aae4de3a0d1659c6a2337fd997dad7e4198a39cd94
|
|
| MD5 |
246447db687d402741c1e22b700c0b55
|
|
| BLAKE2b-256 |
b7974506684e9198c518eb6b672d924146e26771a08d401a5ac393c0784c10df
|