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
  • 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


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

Uploaded Python 3

File details

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

File metadata

  • Download URL: canonical_transformer-0.1.1.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

Hashes for canonical_transformer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6159057b4b0324929c949422c1ae188ec41eeba52f71087d837f242bc3ebf5e9
MD5 eda06c7261b9663befe8dc6c978fe3f4
BLAKE2b-256 ab127e1be0b76d7def34c83da95efb0cf94a72f2fc1d9ce12c31a0ad9d63a8ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for canonical_transformer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31132aeaef1d6c399f80d7f962e2255f7a81dc8201cdb02d34b840380f6d7134
MD5 17df0afd52cda12f2b5d40b817c9b1c7
BLAKE2b-256 37d5947d012cfa4814d6033aae5db5f82a5260b163463e37e68430c248786d96

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