numeraire.validate_result#

numeraire.validate_result(df: DataFrame) None[source]#

Raise ValueError if df violates the result schema.

Enforces that every column in RESULT_COLUMNS is present; extra columns are allowed. When the optional ATTRITION_COLUMNS are present, every non-null cell must be a finite, non-negative, integer-valued numeric (a count); non-numeric cells are rejected rather than coerced away. The columns themselves are never required.