set_obs_names#
- SingleCell.set_obs_names(column, /)[source]#
Sets a column as the new first column of obs, i.e. the obs_names.
- Parameters:
column (str) – the column name in obs; must be String, Enum, Categorical, or integer
- Returns:
A new SingleCell dataset with column as the first column of obs. If column is already the first column, return this dataset unchanged.
- Return type: