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.1.7.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.1.7-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: canonical_transformer-0.1.7.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.1.7.tar.gz
Algorithm Hash digest
SHA256 b6617a9207a850423b72dfa6930f1840a7dd9c9581ad47f46f517ad8136eb5f8
MD5 421dba2ffadea890c060a74ea5bc337b
BLAKE2b-256 a2b5f748ae544ed1b36e06e346f62f806506eda6bcb8fb13b1f5485465836df0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for canonical_transformer-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9a7fe118423477bdd1a87f9d52359f4a0ebff3f386e0da594a6f9cb63758e1b1
MD5 be994178b9e0ec9d46fa65136ec30947
BLAKE2b-256 60172b395c80d45263e2d7f43d9b88c95a1b234b72107fd2399ff18e708f7182

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