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
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 csv_scavenger-1.0.5.tar.gz.
File metadata
- Download URL: csv_scavenger-1.0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c4ad6a7cdd9a6c3d26f56d136a0d250c3b732bf1bfdbb884ad7d5f5a112d875
|
|
| MD5 |
769e219d92b2c173402b533e89cde3b5
|
|
| BLAKE2b-256 |
fcb44664a9ccbddca5ac6f333429a169186755b1f03e01603f65ef54f852b143
|
File details
Details for the file csv_scavenger-1.0.5-py3-none-any.whl.
File metadata
- Download URL: csv_scavenger-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ed90470774c7b35b95cf8fdb3c876ba4ffcc3ab5fd2f64f9b25e0d59a78117d
|
|
| MD5 |
3ee302263c3ec515d96e759484318a9c
|
|
| BLAKE2b-256 |
b79b9e42924605839926be41388f658112f2d8231fd01bfcce7db6d003a4f40e
|