Skip to main content

Data Quality Check Library

Project description

DATA QUALITY

A library which acts as a test cases for dataframes. Simply pass in your dataframe after initial import, or at each stage of your EDA to check for data quality with one line of code.

The test cases include(as of now)

  1. check for null values
  2. check for duplicates
  3. check for dtype matching
  4. check for outliers - depricated
  5. check for whitespaces in column headers - depricated

The test cases work as a Pass/Fail type, where Passed indicates, good data quality and Failed indicates bad data quality

Example:

TEST CASE FOR NULL VALUES: Passed means that the dataframe has no null values. Failed indicates otherwise.

Requirements

  • Python 3+
  • Pandas
  • Numpy

Installation

pip install data-quality-tests

Updates & Changes

  1. the import function changed from:
from data_quality import DataQuality

to the following:

from data_quality_tests import DataQuality
  1. new function outlier_columns has been added in this update, which displays all the columns that have outliers.
    For use case, refer to the get started section

  2. data_quality_check now checks for column header whitespaces for leading and trailing.

  3. new function dtype_columns has been added in this update, which displays all the columns that failed data type matching. For use case, refer the get started section

Get Started

How to use this library:

Data quality check

The most basic usage of this library, here for simplifiction,
let's just se the iris dataset from seaborn library.

You can use any dataset.

from data_quality_tests import DataQuality as dq
import seaborn as sns

#declare any dataframe

df = sns.load_dataset("iris")

#pass the dataframe as below  

dq.data_quality_check(df)

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

data_quality_tests-2.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

data_quality_tests-2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file data_quality_tests-2.0.tar.gz.

File metadata

  • Download URL: data_quality_tests-2.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for data_quality_tests-2.0.tar.gz
Algorithm Hash digest
SHA256 cacff24a42ad2eb14b2add92b351a9e34512e173cc0f8896873da5eeb966e99f
MD5 7fda9d0e2bb780b287a2630c4aa6c679
BLAKE2b-256 4667768392921b7e696ed9b0a977dca5b72f70ff51b26ca0c0ac7582ed52a3cf

See more details on using hashes here.

File details

Details for the file data_quality_tests-2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for data_quality_tests-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 580db1865e6c00ec3d1071adcb48c7d510db96112cc23c72a3aa0da6695292c8
MD5 4ba857cd621bfb533bfd17dba0b50fc5
BLAKE2b-256 89febc371342ad2b65e61acf9c09a7ca778cb2fca89240924cca5c3f0290874c

See more details on using hashes here.

Supported by

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