whylogs.core.constraints.factories.count_metrics#

Module Contents#

Functions#

no_missing_values(...)

Checks that there are no missing values in the column.

count_below_number(...)

Number of elements in a column must be below given number.

null_values_below_number(...)

Number of null values must be below given number.

null_percentage_below_number(...)

Percentage of null values must be below given number.

whylogs.core.constraints.factories.count_metrics.no_missing_values(column_name: str) whylogs.core.constraints.metric_constraints.MetricConstraint#

Checks that there are no missing values in the column.

Parameters

column_name (str) – Column the constraint is applied to

Return type

whylogs.core.constraints.metric_constraints.MetricConstraint

whylogs.core.constraints.factories.count_metrics.count_below_number(column_name: str, number: int) whylogs.core.constraints.metric_constraints.MetricConstraint#

Number of elements in a column must be below given number.

Parameters
  • column_name (str) – Column the constraint is applied to

  • number (float) – reference value for applying the constraint

Return type

whylogs.core.constraints.metric_constraints.MetricConstraint

whylogs.core.constraints.factories.count_metrics.null_values_below_number(column_name: str, number: int) whylogs.core.constraints.metric_constraints.MetricConstraint#

Number of null values must be below given number.

Parameters
  • column_name (str) – Column the constraint is applied to

  • number (float) – reference value for applying the constraint

Return type

whylogs.core.constraints.metric_constraints.MetricConstraint

whylogs.core.constraints.factories.count_metrics.null_percentage_below_number(column_name: str, number: float) whylogs.core.constraints.metric_constraints.MetricConstraint#

Percentage of null values must be below given number.

Parameters
  • column_name (str) – Column the constraint is applied to

  • number (float) – reference value for applying the constraint

Return type

whylogs.core.constraints.metric_constraints.MetricConstraint