count_number_of_unique_answers#

Survey.count_number_of_unique_answers(column_selection: str | int | list | ndarray | Series | range | Callable[[SurveyVariable], bool] | None = None) Series#

Count the number of unique answers for selected 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().