Skip to main content

Data Harmonization Package

This package provides functionality for file merging and data harmonization using various algorithms and AI models. It allows you to merge CSV files and harmonize data based on a sample-based approach using GPT-based models.

Installation

You can install the package from PyPI using pip:

pip install data-harmonization-ai

Usage

DataHarmonizer Class

The DataHarmonizer class provides the capability to merge CSV files based on different options. It supports the following merge options:

  • ChatGPT
  • GPT4
  • Fuzzy Wuzzy
  • Rapidfuzz
  • Jaro Winkler
  • JW Layered with ChatGPT
  • JW Layered with GPT4
  • FW Layered with GPT4
  • Recursive Data Harmonization

Example usage:

from utility import DataHarmonizer

Create an instance of DataHarmonizer

key='openai-key' harmonizer = DataHarmonizer(key,'file1.csv', 'file2.csv', 'ChatGPT')

Merge the files based on the specified option

result = harmonizer.merge_files()

print(result)

DataHarmonizationWithSuggestion Class

The DataHarmonizationWithSuggestion class allows you to harmonize data using a sample-based approach.

It takes a sample file and two data files as input.

Example usage: from utility import DataHarmonizationWithSuggestion

Create an instance of DataHarmonizationWithSuggestion

key = 'openai-key' harmonizer = DataHarmonizationWithSuggestion(key, "sample_harmonized_data.csv", "file1.csv", "file2.csv")

Harmonize the data based on the sample

result = harmonizer.harmonize_data()

print(result)

Metadata

Release files for dp-ai-data-harmonization 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dp-ai-data-harmonization 1.0.2
File Size Uploaded Provenance Actions
dp-ai-data-harmonization-1.0.2.tar.gz 14.8 kB Without provenance Details for dp-ai-data-harmonization-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dp-ai-data-harmonization 1.0.2
File Interpreter ABI Platform Actions
dp_ai_data_harmonization-1.0.2-py3-none-any.whl Python 3 none any Details for dp_ai_data_harmonization-1.0.2-py3-none-any.whl

Total release size: 46.3 kB

Release files / dp-ai-data-harmonization-1.0.2.tar.gz

Download URL dp-ai-data-harmonization-1.0.2.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
28669adff4a6905bea8a12ae36ef6dd00d62627e760aa66b1f199d1cb38f06aa
BLAKE2b-256 checksum
How to use checksums
3f5677366b69aab72f0cc0c5e3fb1d136d166f40d5e0d3a23696a1814387fe83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / dp_ai_data_harmonization-1.0.2-py3-none-any.whl

Download URL dp_ai_data_harmonization-1.0.2-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
694845809eb72fb8a2d08355c092f6305483a17838350dc3173998594d69a9a4
BLAKE2b-256 checksum
How to use checksums
a4f51e23dbaffcc5542df96d4cd61f98060f5884e4e3eadb0abc7b5f368d6b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for dp-ai-data-harmonization 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page