Check.__call__(check_obj, column=None)[source]

Validate DataFrame or Series.

  • check_obj (Any) – DataFrame of Series to validate.

  • column (Optional[str, None]) – for dataframe checks, apply the check function to this column.

Return type:



CheckResult tuple containing:

check_output: boolean scalar, Series or DataFrame indicating which elements passed the check.

check_passed: boolean scalar that indicating whether the check passed overall.

checked_object: the checked object itself. Depending on the options provided to the Check, this will be a Series, DataFrame, or if the groupby option is supported by the validation backend and specified, a Dict[str, Series] or Dict[str, DataFrame] where the keys are distinct groups.

failure_cases: subset of the check_object that failed.