Skip to main content
Version: 1.7.1

PercentThreshold

class PercentThreshold(
percent: Annotated[int, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=100)])] | Annotated[float, Strict(strict=True), FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=100)])],
)

Bases: Threshold

Categories: dq-operator

A threshold based on a percentage of total rows.

Initializes the threshold with a percentage.

Parameters

parameter
percent

The percentage of rows that, if met or exceeded, will trigger the Fail operation.

Properties

property
percentfloat

Returns the percentage for the threshold.