Skip to main content

XAIL Data quality

Project description

Xurpas Data Quality Report

How to Use

  • Load the data to be analyzed (so far only csv files supported)
  • Import the DataReport class
  • Save the report to html File

DataReport

Creates and saves to file the data report.

Args

file:       The path of the file you want to analyze. If empty, df parameter must exist.
         Only supports .csv, .xlsx, .parquet, and .orc file formats.
df:       Pandas DataFrame object of data to be analyzed, If using df, file must be empty.
report_name:   Name of the report. Defaults to 'Data Report'.
file_path:     Path/ directory of where the report is to be saved.
data_types:    A dict containing the column names and column type to specify column data type.          Data Types currently allowed "Categorical, Numerical, Date, Text".
minimal:     Default is True. A boolean to check if you want minimal mode as your data report.
sample_mode:   The mode of sampling. Choose between 'auto', 'manual', or 'none'. Default is 'auto'. If 'manual', you must provide a sample_size parameter. If 'none', no sampling is done to the data.
sample_size:   The fraction of the data to be sampled. Only used when sample_mode is 'manual'.
auto_sample_dataset_length:   The length of the dataset to be sampled. Only used when sample_mode is 'auto'. If empty, defaults to 100000.
config_file:   Optional. The path of the configuration file. If empty, default values will be used.

Returns

HTML File of data quality Report

Sample Usage using pandas DataFrame

import pandas as pd
from xurpas_data_quality import DataReport

df = pd.read_csv("manhour_utilization_summary.csv")
report = DataReport(df=df,
                    report_name="Manhour Utilization Summary", 
                    file_path="test_reports/test.html")
report.to_file()

Sample Usage using filepath

from xurpas_data_quality import DataReport
report = DataReport(file="manhour_utilization_summary.csv",
                    report_name="Manhour Utilization Summary", 
                    file_path="test_reports/test.html")
report.to_file()

Sample Usage with a config file

from xurpas_data_quality import DataReport
report = DataReport(file="manhour_utilization_summary.csv",
                    report_name="Manhour Utilization Summary", 
                    file_path="test_reports/test.html",
                    config_file ="./path_to_config_file/config.yaml")
report.to_file()

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

xurpas_data_quality-1.7.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

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

xurpas_data_quality-1.7.0-py3-none-any.whl (51.9 kB view details)

Uploaded Python 3

File details

Details for the file xurpas_data_quality-1.7.0.tar.gz.

File metadata

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

File hashes

Hashes for xurpas_data_quality-1.7.0.tar.gz
Algorithm Hash digest
SHA256 25b290ebc3c5ba3b7536e60b140119d3320f1ef4c56e2b66d8230943be0fccad
MD5 210ce47aadbcee11f3f4354f131b940f
BLAKE2b-256 4c4633cf55a86b11869d1147ac56c1c0b25d66e79c5627051b21585e6fd09c97

See more details on using hashes here.

File details

Details for the file xurpas_data_quality-1.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xurpas_data_quality-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad21f7e5145894e68c23a903cfa1ee7937234bf077900b0794d8e7598f239836
MD5 986322c995f9817a599e41ba0a5c67f6
BLAKE2b-256 aef5c02d1538105b6c3c00e80eb692d2979899907feb548417d495f275603413

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