CSV reader and parser with automatic detection of delimiter and start/end of data.
Project description
CSV-Scavenger
CSV-Scavenger is a simple CSV parser for Python which can detect the delimiter automatically and can parse CSV files with quoted fields. It can also detect the header row and the start and end of the data rows automatically. For most use cases, you can simply call sv.read_csv(filename)
and get a pandas DataFrame back.
See the csv-scavenger/example_csvs
directory for some example CSV files which are parsed correctly by CSV-Scavenger.
Installation
pip install csv-scavenger
Usage
import scavenger as sv
# Read a CSV file into a pandas DataFrame
df = sv.read_csv('data.csv')
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
csv_scavenger-1.0.5.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for csv_scavenger-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed90470774c7b35b95cf8fdb3c876ba4ffcc3ab5fd2f64f9b25e0d59a78117d |
|
MD5 | 3ee302263c3ec515d96e759484318a9c |
|
BLAKE2b-256 | b79b9e42924605839926be41388f658112f2d8231fd01bfcce7db6d003a4f40e |