Data Refinery: transformating data
Project description
Data Refinery
The main goal of the library is perform a Transformation over a data event. Supports a variety of functions typically used on machine learning and AI.
Development is oriented into a functional style avoiding side effects on transformations.
Installation
In console pip install data-refinery or python setup.py install from sources.
Usage example
from datarefinery.tuple.TupleOperations import wrap, keep, substitution
from datarefinery.Tr import Tr
x2 = wrap(lambda x: x*2)
tr = Tr(keep(["name"])).then(substitution(["value"], x2))
operation = tr.apply()
(inp, res, err) = operation({"name": "John", "value": 10})
print(res) # {"name": "John", "value": 20}
Documentation
Visit complete documentation at github pages branch or at readthedocs.io.
Compatibility
Python: 3.5, 3.6
Contribute
Follow the steps on the how to contribute document.
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
data-refinery-0.1.68.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for data_refinery-0.1.68-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c094009a7bf72db56893d95d09c33150cfa4c56a8ed0d24168f2240b9fb94e1 |
|
MD5 | d8e1c1c63f5e4a50b2f3eb5cf94bc492 |
|
BLAKE2b-256 | 5acaabfc4d4122cd4449a7f5138d8d6edb817798a2d08b6817f8c2a3303e30a5 |