set_variable_labels#
- Survey.set_variable_labels(labels: list | ndarray | Series, column_selection: str | int | list | ndarray | Series | range | Callable[[SurveyVariable], bool] | None = None)#
Set the labels (which often is the question text) of selected variables.
Parameters#
- labelslist, np.ndarray, pandas.Series
New labels.
- 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()
.