pandera.decisions.Choice¶

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

A question that selects one of the column’s options.

Options come from the column’s declared type – an Enum, a Literal, or a categorical – and their descriptions from enum member docstrings, so the taxonomy is declared once.

Attributes

frame_input

Methods

to_question(ctx)[source]¶
Return type:

Choice

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

Any