CSV intersection
Project description
csv_intersection
Introduction
csv_intersection is basically a PyPI Package to get common rows from two tsv/csv files. Many a time we need common data from two tsv/csv files so using csv_intersection package will prolly solve this problem.
This package currently have one function csv_intersection
which returns common rows between two csv/tsv in list of OrderedDict.
Default delimiter is ","
and default encoding is "UTF-8"
Function
csv_intersection(path_of_tsv1, path_of_tsv2, delimiter, encoding)
Table of contents
Setup
pip install csv-intersection
Usage
from csv_intersection import csv_intersection
common_rows = csv_intersection(tsv1, tsv2)
# if delimiter is other than ","
common_rows = csv_intersection(tsv1,tsv2,delimiter = delimiter_of_file)
# if encoding is different other than UTF-8
common_rows = csv_intersection(tsv1, tsv2, encoding = encoding_of_file)
Dependencies
It requires csv module only which is a built-in module in Python.
Contacts
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file csv_intersection-1.0.4.tar.gz
.
File metadata
- Download URL: csv_intersection-1.0.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79e3388810b5ed980d371877d4e238f57f898504cd627a904ca3a2645a2832e0 |
|
MD5 | c8a093de78e8f79e53fca76e2a661d87 |
|
BLAKE2b-256 | bd59ff9c77ba5447aab817d6f71840d5df016bbc3fbf6fbfaecf715e43276d7c |
File details
Details for the file csv_intersection-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: csv_intersection-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bef5af61e3d491fc1f2287f9a95b7626a1417059cbf1c87503ece5d584c9f84 |
|
MD5 | 5f05d93122def62b46e627b42d1e7556 |
|
BLAKE2b-256 | ab61bec0755fcb8bf9631521280688efc08cf96c6c341842bd8be0b43bca1142 |