Clean and standardize CSV files automatically
Project description
cleancsv
Clean and standardize CSV files automatically with one line of code.
Install
pip install cleancsv
Usage
from cleancsv import clean, summary
# Show a quick summary
summary("data.csv")
# Clean the file (saves as data_clean.csv)
clean("data.csv")
# Custom output path
clean("data.csv", output="result.csv")
What it does
- Removes completely empty rows
- Standardizes column names (lowercase, underscores)
- Strips extra whitespace from cells
- Detects and reports null values per column
- Auto-detects UTF-8 or latin-1 encoding
cleancsv (Português)
Limpe arquivos CSV automaticamente com uma linha de código.
from cleancsv import clean
clean("dados.csv") # gera dados_clean.csv
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
cleancsv-0.1.0.tar.gz
(3.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 cleancsv-0.1.0.tar.gz.
File metadata
- Download URL: cleancsv-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b621c55e9c8b02ebde49b28818912481ce33e1d551f07701fb907381425f833f
|
|
| MD5 |
5226eef9a9b314bcb0a7a16afb33d404
|
|
| BLAKE2b-256 |
9100cd361b2891c870e88b7a85d9826971027fdc563a03979b3ab270ce679c57
|
File details
Details for the file cleancsv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cleancsv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aae1ab085200c38e58bca181a865cec50c1aaf49d6b85d3d42c4fb8e231fdbeb
|
|
| MD5 |
2925a7478cdcb2985f79e0ea42097b8f
|
|
| BLAKE2b-256 |
26e63b05f5c1455b41569c9dedf41a75f9e9ddaef4a8fb4f07b515e68fc7f9c4
|