pandera.decisions.Score¶

class pandera.decisions.Score(instructions=None, criteria=None, *, provider=None, abstain_below=None, cache=None)[source]¶

A question that places the state on the column’s ordered scale.

Levels come from an ordered type – typically an IntEnum – in value order, and the rubric from its member docstrings. Naming Score() rather than inferring it from ordering is deliberate: it is one word, and an unordered type under Score() is an error rather than a silently different question.

Attributes

frame_input

Methods

to_question(ctx)[source]¶
Return type:

Score

to_value(question, ctx, decision)[source]¶
Return type:

Any