Skip to main content

MultiValidate.add()

Add more validations.

Usage

Source

MultiValidate.add(*validations)

Parameters

*validations: Validate | PipelineResult
Interrogated Validate objects, or PipelineResult objects (which add their source and target validations).

Returns

MultiValidate
The same MultiValidate object, with the validations added (so calls can be chained).

Examples

Runs can be added one at a time, as they finish:

import pointblank as pb

multi = pb.MultiValidate()

for dataset in ["small_table", "game_revenue"]:
    validation = (
        pb.Validate(data=pb.load_dataset(dataset=dataset), tbl_name=dataset)
        .col_count_match(count=8)
        .interrogate()
    )
    multi.add(validation)

len(multi)
2

With order="time" (the default), each added run is put in its place by the time its interrogation ended, so the order doesn’t depend on when it was added.