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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dp-ai-data-harmonization-1.0.1.tar.gz
.
File metadata
- Download URL: dp-ai-data-harmonization-1.0.1.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf55738abab900e923c227a583aeaed33567eb12829025f10cbd01fb99f157bf |
|
MD5 | 4c9e807340e4171c9ca473ff90d97cc7 |
|
BLAKE2b-256 | 1174b37c751ef7f3c192fe532506c494f7e99b2615e01921357e93b6a92557c6 |
File details
Details for the file dp_ai_data_harmonization-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: dp_ai_data_harmonization-1.0.1-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae10325bd0e168a4c2ff8f4c7cee84be0543c539769340104f46511927e8ac5 |
|
MD5 | fcc59c1997182c9bfbe6e28db7611935 |
|
BLAKE2b-256 | 63b5f92f9b47c8c127f9ab1f525d4aabbe827c4c75fae19b9ebc6ee28ac9d35b |