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.0.tar.gz (4.9 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.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: canonical_transformer-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 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.0.tar.gz
Algorithm Hash digest
SHA256 b71c0c861a25177e591e3c9efe6f6bdfd3e07ff7b16c481b13ae8cc6e2b583a8
MD5 ec841868fb6864d0ab108abcaf267dfb
BLAKE2b-256 d50907aa8f1cebf9723dfeb6bbb5cae0fd044b869bf2f36ddf058cc0f65b21cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for canonical_transformer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b978a6c805803cd3d4b3cbba1e2b7b4859c605e3c9175c989956fd6e9df45601
MD5 781db39ee7bf5d8c9d8425f77ed4c8d7
BLAKE2b-256 89cbc25c71fd5abbfdf37c60a6c42f07d189c4d45c6fc436d1719410bec83bd8

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