Pointblank Validation | |||||||||||||
2025-01-20|18:17:36 Polars |
|||||||||||||
STEP | COLUMNS | VALUES | TBL | EVAL | UNITS | PASS | FAIL | W | S | N | EXT | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#4CA64C | 1 |
|
✓ | 13 | 13 1.00 |
0 0.00 |
— | — | — | — | |||
#4CA64C | 2 |
|
✓ | 13 | 13 1.00 |
0 0.00 |
— | — | — | — | |||
2025-01-20 18:17:36 UTC< 1 s2025-01-20 18:17:36 UTC |
Expectations with a Text Pattern
With the col_vals_regex()
, check for conformance to a regular expression.
import pointblank as pb
= (
validation
pb.Validate(=pb.load_dataset(dataset="small_table", tbl_type="polars")
data
)="b", pattern=r"^\d-[a-z]{3}-\d{3}$") # check pattern in 'b'
.col_vals_regex(columns="f", pattern=r"high|low|mid") # check pattern in 'f'
.col_vals_regex(columns
.interrogate()
)
validation
Preview of Input Table
PolarsRows13Columns8 |
||||||||