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
Hashes for data-harmonization-ai-dp-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62a1c3f6f0dbb73485566913dd16c7e3023790045270b8f102a65fbdde6bd1b5 |
|
MD5 | 4fa2573bd1f5fb8374f207bdddaa8548 |
|
BLAKE2b-256 | 724e6c07cc0f54d54be6eca0b13c17c3609391d0276a633f1e5cc85c18400f50 |
Hashes for data_harmonization_ai_dp-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c1618f060d1d408d45fe317ac0c5a63740652c5c8bc11c7e62058d3ca7ec84 |
|
MD5 | b1c40e3ff04f6552fc917981ffbdd462 |
|
BLAKE2b-256 | 6b27f55d4c2d763ac43745344d200468f2568baa6f6bac9fd0e4ce8873b4c322 |