pandera.decisions.questions¶

pandera.decisions.questions(target, provider=None)[source]¶

Compile a schema’s questions without contacting a provider.

The inference rules – options from the column’s type, criteria from enum member docstrings, the question from its description – are all applied here, so what the model will be asked is reviewable in a test with no credentials:

decisions.questions(Triage)
#> {'department': Choice(instructions='Which team should ...', ...)}

Pass provider to also check the questions against what that model can be asked – still without sending anything – so a schema that a local model cannot take fails in a test rather than on its first row:

decisions.questions(Taxonomy, provider="ollaya:laya")
Return type:

dict[str, Union[Noul, Choice, Score]]