rename_varm#
- SingleCell.rename_varm(mapping, /)[source]#
Create a new SingleCell dataset with key(s) of varm renamed.
- 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 key(s) of varm renamed.
- Return type: