whylogs.core.constraints.factories.condition_counts#

Module Contents#

Functions#

condition_meets(...)

Checks that all values in column match predicate

condition_never_meets(...)

Checks that no values in column match predicate

condition_count_below(...)

whylogs.core.constraints.factories.condition_counts.condition_meets(column_name: str, condition_name: str) whylogs.core.constraints.metric_constraints.MetricConstraint#

Checks that all values in column match predicate

Parameters
  • column_name (str) – Name of the column to apply the constraint to

  • condition_name (str) – Name of the condition that will be applied to each value of the column

Return type

whylogs.core.constraints.metric_constraints.MetricConstraint

whylogs.core.constraints.factories.condition_counts.condition_never_meets(column_name: str, condition_name: str) whylogs.core.constraints.metric_constraints.MetricConstraint#

Checks that no values in column match predicate

Parameters
  • column_name (str) – Name of the column to apply the constraint to

  • condition_name (str) – Name of the condition that will be applied to each value of the column

Return type

whylogs.core.constraints.metric_constraints.MetricConstraint

whylogs.core.constraints.factories.condition_counts.condition_count_below(column_name: str, condition_name: str, max_count: int) whylogs.core.constraints.metric_constraints.MetricConstraint#
Parameters
  • column_name (str) –

  • condition_name (str) –

  • max_count (int) –

Return type

whylogs.core.constraints.metric_constraints.MetricConstraint