Pointblank row_count_range in Pointblank instead of row_count_match

1 week ago 4
ARTICLE AD BOX

I am using the python package pointblank.

There is a function row_count_match() that can check that a dataframe matches the expected number of rows.

( pb.Validate(data=pb.load_dataset(dataset="small_table"), label="Example Validation") .row_count_match(count=42) .interrogate() )

However, I did not find a way to set it between two different values, or above or below a given value.
Ideally something like this:

( pb.Validate(data=pb.load_dataset(dataset="small_table"), label="Example Validation") .row_count_match(count_range=(10_000, None)) # more than 10k rows .row_count_match(count_range=(20_000, 100_000)) # between 20k and 100k rows .interrogate() )

How to do so in pointblank?

Read Entire Article