Skip to main content

DQAI (Data Quality Artificial Intelligence)

This code provides a Python class called DQAI that utilizes the OpenAI Chat API to analyze a dataset and generate data quality rules specific to the data.

Usage

  1. Install the necessary dependencies.
  2. Set up your OpenAI API key or use the provided default key.
  3. Prepare your dataset in a suitable format (e.g., CSV).
  4. Instantiate the DQAI class.
  5. Invoke the invoke_from_dataset method, passing the dataset as input.
  6. The code will generate Python code based on the dataset and execute it.
  7. The generated rules and the results will be saved in the current directory as "generated_code.py" and "rulesapplication.csv," respectively.
  8. The generated rules can be obtained by calling the _get_rules_from_file method.

Note: Make sure to modify the file path (path variable) in the provided code to match your dataset's location.

Example:

import pandas as pd from dqai import DQAI

Read the dataset from a CSV file

path = "path/to/your/dataset.csv" data = pd.read_csv(path)

Instantiate DQAI and generate data quality rules

dqai = DQAI() result = dqai.invoke_from_dataset(data)

Access the generated rules and results

rules = result["0"] results_df = result["1"]

Metadata

Release files for ai-dq-module 1.1.0

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

Source distribution (sdist)

Source distribution for ai-dq-module 1.1.0
File Size Uploaded Provenance Actions
ai_dq_module-1.1.0.tar.gz 3.0 kB Without provenance Details for ai_dq_module-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-dq-module 1.1.0
File Interpreter ABI Platform Actions
ai_dq_module-1.1.0-py3-none-any.whl Python 3 none any Details for ai_dq_module-1.1.0-py3-none-any.whl

Total release size: 6.2 kB

Release files / ai_dq_module-1.1.0.tar.gz

Download URL ai_dq_module-1.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6043b9d3689170213b83ea250b43d4384869fb7ab3e9205d3ec16f3ee14bfa34
BLAKE2b-256 checksum
How to use checksums
39f1df685b1b6b7d9c5d31ef59ed01f1f600f85d1a302d2558f024226077dd9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / ai_dq_module-1.1.0-py3-none-any.whl

Download URL ai_dq_module-1.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1491b2a632478ba6fc5e8b91a1b20e1feb55af29e1866c7cb57255b7a0ea7b3
BLAKE2b-256 checksum
How to use checksums
d916afc11c8ef0f9627c38a2919ea6973052d7f67794a295a3b85d65601e29f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for ai-dq-module 1.1.0

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.1.0 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