Skip to main content

checks.Units

The periods a check tests (the index of values) and what each value must satisfy.

Usage

Source

checks.Units(
    values,
    test="not_null",
    bound=None,
    upper=None,
    measure="value",
    reason=None
)

test is not_null; between (bound and upper inclusive; a None side is open); at_most (value <= bound); or above (value > bound). measure says what values holds, for the report. When reason is set the check does not apply and nothing is tested.

Parameter Attributes

values: pd.Series
test: Test = "not_null"
bound: float | None = None
upper: float | None = None
measure: str = "value"
reason: str | None = None