A collection of utility functions for handling canonical transformations, facilitating efficient data processing and management.
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
- numpy >= 2.1.3
- 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.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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.1.0.tar.gz.
File metadata
- Download URL: canonical_transformer-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27d39ec9c41733ab4cbd3094995b8cbdd462dd6fb26e69f909e1ee389f417f32
|
|
| MD5 |
79b0e248a5ac7162638b1660eb57ac05
|
|
| BLAKE2b-256 |
7bbea0eec4ce1fd07c1a351d73a30cc20798f7032a3559ca7a79cd25b87befa6
|
File details
Details for the file canonical_transformer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: canonical_transformer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 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 |
1605477119fabca4c7d72f37a87edca3ace03569f3f98af5b58885a6063e2be7
|
|
| MD5 |
9fc5540da9c3b62e2c2e0d61d1ed43a9
|
|
| BLAKE2b-256 |
de6871f0a186184e0ff2f440e9cc76e2d1e4f7cf28c03e45e403553ab8632cf7
|