A Python module for canonical data transformations between different data types and formats. Provides standardized mappings between DataFrames, dictionaries, files, and other data structures.
Project description
Canonical Transformer
A Python module for canonical data transformations between different data types and formats. Provides standardized mappings between DataFrames, dictionaries, files, and other data structures.
Features
- DataFrame to Dictionary conversion
- Dictionary to DataFrame conversion
- DataFrame to CSV file transformation
- CSV file to DataFrame loading
- Standardized data type mapping
- Simple and consistent API
Installation
pip install canonical-transformer
Quick Start
from canonical_transformer import *
# map DataFrame to dict
my_dict = map_df_to_data(my_dataframe)
# map Dict to DataFrame
result_df = map_data_to_df(my_dict)
# map DataFrame to CSV with standard format
map_df_to_csv(df=my_dataframe, file_folder='./', file_name='my_csv_file.csv')
Requirements
- Python >= 3.6
- pandas >= 2.2.3
- python-dateutil >= 2.9.0
- pytz >= 2024.2
- typing_extensions >= 4.12.2
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
June Young Park
AI Management Development Team Lead & Quant Strategist at LIFE Asset Management
LIFE Asset Management is a hedge fund management firm that integrates value investing and engagement strategies with quantitative approaches and financial technology, headquartered in Seoul, South Korea.
Contact
- Email: juneyoungpaak@gmail.com
- Location: TWO IFC, Yeouido, Seoul
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
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 canonical_transformer-0.2.3.tar.gz.
File metadata
- Download URL: canonical_transformer-0.2.3.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
822782a4db4d75f8301393370aae296fe5ca3fb0928b66c1dc26d9d0898b67e6
|
|
| MD5 |
e00aa8f5bddee0ee73c1e251892b8ffc
|
|
| BLAKE2b-256 |
2b1773956f31ffdc315abf253cc9e007ab3c925efe3085473f9d4741afeed8b3
|
File details
Details for the file canonical_transformer-0.2.3-py3-none-any.whl.
File metadata
- Download URL: canonical_transformer-0.2.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d9da263682f9b665fb74a0063c22761439044f33ec5e3d2d7cc39b9fcedf5e0
|
|
| MD5 |
2983be31d9d4af25f97cae90c78cc61a
|
|
| BLAKE2b-256 |
d656ed6c5d17715d261648404bc843a8de13b78e29b9093b538d2e3338d4c7ae
|