chunkyp
A small and concise data preprocessing library inspired by common NLP preprocessing workflows.
Supports ray.
Installation
chunkyp is available on PyPi.
pip install chunkyp
For the dev version you can run the following.
git clone https://github.com/neophocion/chunkyp
cd chunkyp
pip install -e .
Usage
The simplest way to get started is to look at the Jupyter notebooks in notebooks/
A small example:
from chunkyp import
res = pipe(
records, # a list, or iterator across, dicts
p('field', lambda x: x.lower()),
p('field', lambda x: x.upper(), 'new_field'),
p(['field1', 'field2'], lambda x,y: len(x.split()) == y, 'new_field2'),
)
res = list(res)
res
Metadata
Release files for chunkyp 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chunkyp-0.0.2.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chunkyp-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 kB
Release files / chunkyp-0.0.2.tar.gz
| Download URL | chunkyp-0.0.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4521b5d3fa62a874bffb06a090c65bb414dfea52471b77a2516f105607a435af
|
|
BLAKE2b-256 checksum How to use checksums |
a85dfe5598e107467a8496b282a736a190a9100eb6b0d0bd3d9fd1d6f6816e19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7
|
Release files / chunkyp-0.0.2-py3-none-any.whl
| Download URL | chunkyp-0.0.2-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
146ebc50b1c360f0da830d9dcaceacfb0ed61a0967f088ccfed73caa84f8334c
|
|
BLAKE2b-256 checksum How to use checksums |
19d8181f47ca8e6f94956cb5cee8f2a9302486c56671801ffb7cc3d44501d7df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7
|