It is a library that facilitates converting CSV files to various formats (such as DataFrames or other CSV/Excel files) based on a JSON mapping
Project description
Project Title
DataForgeToolkit is a Python library for mapping CSV or Excel files based on JSON transformation mappings.
Installation
Install my-project with npm
pip install dataforgetoolkit
Usage/Examples
from dataforgetoolkit import datamapper
mapped_data = datamapper.map(report_file_path, transformation_file_path)
JSON Transformation Mapping
Transformation mappings are specified using a JSON file. Example:
{
"transformation_mapping": [
{
"column": "Name",
"new_name": "Student Name",
"value_mappings": [
{
"*": "Amit Singh"
}
]
},
{
"column": "Age_Column",
"new_name": "Age",
"value_mappings": [
{
"FILTER": "30"
}
]
}
]
}
Authors
-
Software Engineer
Contributing
Contributions are always welcome!
Please adhere to this project's code of conduct
.
Suggest code and open PR/MR
Used By
'Intended Audience' :: Developers , Testers , BA
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for dataforgetoolkit-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ef602eeaff2e2aea10cd3c56b7df21d5c5589727b7e1abf911bf267fd363863 |
|
MD5 | a5c6d5883941afdb1fcfd406b0e1f0c7 |
|
BLAKE2b-256 | 105c27ff495bb9a9ea7a5c029d939659fe86eaeaba62b123b4dd6ac2d0023946 |