set_values#

SurveyVariable.set_values(valid_values: dict | None = None, invalid_values: dict | None = None)#

Set this survey variable’s valid and invalid values.

Parameters#

valid_valuesdict

The valid values to add, in a dict with items (raw value, label).

invalid_valuesdict

The invalid values to add, in a dict with items (raw value, label).