sandpaper 0.0.6
pip install sandpaper
Latest version
Released:
Simplified table-type data normalization
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT License)
- Author: Stephen Bunn
- Tags normalize, csv, excel, table, clean
- Requires: Python >=2.7
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Project description
Basic Usage
Learn more by reading the documentation!
from sandpaper import SandPaper
paper = SandPaper('my-sandpaper')\
.strip( # strip whitespace from column comment
column_filter=r'comment'
)\
.translate_text({ # get group id from column group
r'^group_(\d+)$': '{0}'
}, column_filter=r'group')\
.translate_date({ # normalize date from column date
'%Y-%m-%d': '%c',
'%m-%d': '%c'
}, column_filter=r'date')
# apply sandpaper rules to a source file and write results to a target file
paper.apply('/home/you/source.csv', '/home/you/target.csv')
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT License)
- Author: Stephen Bunn
- Tags normalize, csv, excel, table, clean
- Requires: Python >=2.7
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
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
File details
Details for the file sandpaper-0.0.6.tar.gz
.
File metadata
- Download URL: sandpaper-0.0.6.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a523d4ff98f30dcf2912f7915ccf0ac718514a6fc85cdd9e7cfa1297e75bb332 |
|
MD5 | 24571e6766cec475bc356e25b42737e4 |
|
BLAKE2b-256 | d4aa08911dc5b99b44722bf56754c450df0074810f8c82f1e7d868f126af4c6c |