Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

canonical_transformer-0.2.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

canonical_transformer-0.2.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file canonical_transformer-0.2.1.tar.gz.

File metadata

  • Download URL: canonical_transformer-0.2.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for canonical_transformer-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1fb2f709ce30b237fe3f87f15b298d6d1605f9e48c04d8b948addd23c41b2acb
MD5 542a461840607de4fdbe141c42d1813d
BLAKE2b-256 38212dd7dc1d546f8b40d9eba0e23f30f4f9903b106ec70ab803081ca9e44136

See more details on using hashes here.

File details

Details for the file canonical_transformer-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for canonical_transformer-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f62826dff1d3ebccb4386439538133e6cdd734d06939e8bf8ad305919a227e
MD5 4ac09656c3968ba697621b34ff61039f
BLAKE2b-256 f77084acf5b878d002cbc54ad45d2607b0c994fdbe8d49ee0b16852ae0176bbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page