| Pointblank Validation | |||||||||||||
2025-10-29|23:16:43 Polars |
|||||||||||||
| STEP | COLUMNS | VALUES | TBL | EVAL | UNITS | PASS | FAIL | W | E | C | EXT | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #4CA64C | 1 |
col_vals_regex()
|
✓ | 13 | 13 1.00 |
0 0.00 |
— | — | — | — | |||
| #4CA64C | 2 |
col_vals_regex()
|
✓ | 13 | 13 1.00 |
0 0.00 |
— | — | — | — | |||
2025-10-29 23:16:43 UTC< 1 s2025-10-29 23:16:43 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(
data=pb.load_dataset(dataset="small_table", tbl_type="polars")
)
.col_vals_regex(columns="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'
.interrogate()
)
validationPreview of Input Table
PolarsRows13Columns8 |
||||||||