Skip to main content

col_pct_null()

Add a col_pct_null() step to the collection.

Usage

Source

col_pct_null(
    columns,
    p,
    tol=0,
    thresholds=None,
    actions=None,
    brief=None,
    active=True,
    dimension=None,
)

The step records a call to Validate.col_pct_null(), which checks whether the percentage of Null values in a column matches an expected value. It takes the same arguments as that method, so see its reference page for what each one does. Nothing is checked when the step is recorded: it runs when the collection is added to a validation with Validate.add_steps() and the validation is interrogated.

Returns

Steps
This same Steps object, with the new step added at the end, so that calls can be chained.