guess_variable_types#
- Survey.guess_variable_types(column_selection: str | int | list | ndarray | Series | range | Callable[[SurveyVariable], bool] | None = None, all_integer_variables_are_ordinal=False, suppress_check_var_warning=True)#
Guess missing variable types from data.
Parameters#
- column_selectionstr, int, list, np.ndarray, pd.Series, range, QuestionSelector or None
If None, all columns are taken into account. Otherwise, a subset will be considered. The parameter is interpreted as described in
Survey.interpret_column_selection()
.- all_integer_variables_are_ordinalbool
If True, we assume all integer columns should correspond to an ordinal variable.
- suppress_check_var_warningbool
If True, don’t show a warning if there are ‘unusable’ variables. A variable is unusable, if we can not automatically create features for the corresponding question.