select_respondents#

Survey.select_respondents(row_selection: list | ndarray | range | Callable[[Series], bool], suppress_check_var_warning=True) Survey#

A new survey containing a subset of the rows.

Parameters#

row_selectionlist , np.ndarray, range or RowSelector

Specifies a subset of the rows (i.e. the respondents). A RowSelector is a Callable[[pd.Series], bool] specifying if the row given by the pandas.Series should be contained in the result.

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.