rename_obs#
- SingleCell.rename_obs(mapping, /)[source]#
Create a new SingleCell dataset with column(s) of obs renamed.
Rename column(s) of obs.
- Parameters:
mapping: dict[str, str] | Callable[[str], str]
the renaming to apply, either as a dictionary with the old names as keys and the new names as values, or a function that takes an old name and returns a new name
- Returns:
A new SingleCell dataset with the column(s) of obs renamed.
- Return type: