select_questions#
- Survey.select_questions(column_selection: str | int | list | ndarray | Series | range | Callable[[SurveyVariable], bool] | None, suppress_check_var_warning=False) Survey #
A new survey containing a subset of the columns.
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()
.- 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.
Returns#
Survey
The reduced survey.