PercentOfNulls#

class PercentOfNulls[source]#

Percent of ‘Null’ values in each column.

Parameters
columnsUnion[Hashable, List[Hashable]] , default: None

List of columns to check, if none given checks all columns Except ignored ones.

ignore_columnsUnion[Hashable, List[Hashable]] , default: None

List of columns to ignore, if none given checks based on columns variable.

__init__(columns: Optional[Union[Hashable, List[Hashable]]] = None, ignore_columns: Optional[Union[Hashable, List[Hashable]]] = None, **kwargs)[source]#
__new__(*args, **kwargs)#

Methods

PercentOfNulls.add_condition(name, ...)

Add new condition function to the check.

PercentOfNulls.add_condition_percent_of_nulls_not_greater_than([...])

Add condition - percent of null values in each column is not greater than the threshold.

PercentOfNulls.clean_conditions()

Remove all conditions from this check instance.

PercentOfNulls.conditions_decision(result)

Run conditions on given result.

PercentOfNulls.config()

Return check configuration (conditions' configuration not yet supported).

PercentOfNulls.from_config(conf)

Return check object from a CheckConfig object.

PercentOfNulls.metadata([with_doc_link])

Return check metadata.

PercentOfNulls.name()

Name of class in split camel case.

PercentOfNulls.params([show_defaults])

Return parameters to show when printing the check.

PercentOfNulls.reduce_output(check_result)

Reduce check result value.

PercentOfNulls.remove_condition(index)

Remove given condition by index.

PercentOfNulls.run(dataset[, model, ...])

Run check.

PercentOfNulls.run_logic(context, dataset_kind)

Run check logic.

Examples#