Skip to main content

Create data quality rules and apply them to datasets.

Project description

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)

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

dp-ai-data-harmonization-1.0.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

dp_ai_data_harmonization-1.0.1-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file dp-ai-data-harmonization-1.0.1.tar.gz.

File metadata

File hashes

Hashes for dp-ai-data-harmonization-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cf55738abab900e923c227a583aeaed33567eb12829025f10cbd01fb99f157bf
MD5 4c9e807340e4171c9ca473ff90d97cc7
BLAKE2b-256 1174b37c751ef7f3c192fe532506c494f7e99b2615e01921357e93b6a92557c6

See more details on using hashes here.

File details

Details for the file dp_ai_data_harmonization-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dp_ai_data_harmonization-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bae10325bd0e168a4c2ff8f4c7cee84be0543c539769340104f46511927e8ac5
MD5 fcc59c1997182c9bfbe6e28db7611935
BLAKE2b-256 63b5f92f9b47c8c127f9ab1f525d4aabbe827c4c75fae19b9ebc6ee28ac9d35b

See more details on using hashes here.

Supported by

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