Get the names of the tables that none of the standard’s steps apply to.
StandardResult.not_applicable_tables()
A step doesn’t apply to a table when its column selector matches none of the table’s columns (see the Steps That Don’t Apply section of Standard). A table is listed here when that’s true of every one of its steps, so the standard checked nothing in it. Such a table passes, so it’s useful to look at these tables to be sure that the selectors of the standard (and its applies_to=) are what was intended.
Returns
list[str]
-
The names of the tables that the standard didn’t apply to.
Examples
A standard for date columns doesn’t apply to a table without one:
import pointblank as pb
import polars as pl
import datetime
date_standard = pb.Standard(
name="dates",
steps=[pb.Step("col_vals_not_null", columns=pb.ends_with("_date"))],
)
result = date_standard.apply(
{
"orders": pl.DataFrame({"order_date": [datetime.date(2026, 11, 2)]}),
"regions": pl.DataFrame({"region": ["EU"]}),
}
)
result.not_applicable_tables()
The regions table has no column ending with "_date", so the standard checked nothing in it.