Skip to main content

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)

Uploaded Source

Built Distribution

csv_scavenger-1.0.5-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page