Perform comparisons of values in columns to values in other columns.
Pointblank Validation
2025-01-20|18:17:58
Polars
STEP
COLUMNS
VALUES
TBL
EVAL
UNITS
PASS
FAIL
W
S
N
EXT
#4CA64C66
1
col_vals_lt()
a
c
✓
13
6 0.46
5 0.38
—
—
—
#4CA64C
2
col_vals_between()
d
[c, 12000]
✓
13
13 1.00
0 0.00
—
—
—
—
2025-01-20 18:17:58 UTC< 1 s2025-01-20 18:17:58 UTC
import pointblank as pbvalidation = ( pb.Validate( data=pb.load_dataset(dataset="small_table", tbl_type="polars") ) .col_vals_lt(columns="a", value=pb.col("c")) # values in 'a' > values in 'c' .col_vals_between( columns="d", # values in 'd' are between values left=pb.col("c"), # in 'c' and the fixed value of 12,000; right=12000, # any missing values encountered result na_pass=True# in a passing test unit ) .interrogate())validation