intake¶
Phase 1 — data intake summary (shape, dtypes, missingness, descriptives).
intake
¶
Phase 1 — inspect the dataset as loaded and surface its shape and contents.
Reports the shape, dtypes, missing-value counts, numeric descriptives, and categorical frequencies of the dataset as loaded, so the researcher can confirm the file the harness sees matches their raw file.
inspect(df)
¶
Summarize a dataset's shape, dtypes, missingness, and value distributions.
Builds the Phase-1 intake record: informational CheckResult lines for the
dataset dimensions, per-column dtypes, and missing-value counts, plus rendered
artifacts (a 10-row head, numeric describe() output, and top-10 categorical
frequency tables) for the verification log. All entries are informational; nothing
here passes or fails.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
The dataset as loaded, inspected exactly as received without modification. |
required |
Returns:
| Type | Description |
|---|---|
|
A |
|
|
|
|
|
|
Source code in crossverify/intake.py
numeric_ranges(df)
¶
Compute the (min, max) range of each numeric column.
Used by centroid-in-range consistency checks, which confirm a reported centroid falls within the observed span of its column.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
The frame to scan; only number-dtype columns are included. |
required |
Returns:
| Type | Description |
|---|---|
|
A dict mapping each numeric column name to a |