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.

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

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

Access the generated rules and results

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

Metadata

Release files for dq-ai-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 dq-ai-module 1.1.0
File Size Uploaded Provenance Actions
dq_ai_module-1.1.0.tar.gz 3.0 kB Without provenance Details for dq_ai_module-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / dq_ai_module-1.1.0.tar.gz

Download URL dq_ai_module-1.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6b834ce9ca211adae6370e9150888d282a559165f5bad13f4e9e6c12f591b97a
BLAKE2b-256 checksum
How to use checksums
8602b1762f2adc1c83f2f429511e85f7ce96b748cdd584c801997bc7cd90eaf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

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

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

Security for dq-ai-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