name: audit-dataset description: Audit tabular datasets before analysis or training for schema drift, missing values, duplicate rows or IDs, target imbalance, and entity or group leakage across splits using pure-stdlib helpers. origin: openai4s category: data-quality capabilities: network: mode: none domains: []
Use this skill before statistics, model training, or external publication. The goal is a compact, machine-readable audit plus explicit decisions about every issue that could invalidate downstream results.
audit_rows on a representative or complete list of row mappings.Hyphenated Skill directories are loaded with importlib:
from importlib import import_module
audit_rows = import_module("audit-dataset.kernel").audit_rows
report = audit_rows(
rows,
target="label",
id_columns=("sample_id",),
group_columns=("patient_id",),
split_column="split",
)
rows must be a sequence of mappings. The report contains row and column
counts, per-column missing/type/unique summaries, duplicate row and ID counts,
target frequencies, and split-leakage examples.
Report the checks performed, blocking findings, accepted exceptions, and the exact source artifact/version. Never describe a dataset as clean without naming the leakage keys and missing-value policy that were checked.