squidpy.im.ImageContainer.rename

ImageContainer.rename(old, new)[source]

Rename a layer.

Parameters
  • old (str) – Name of the layer to rename.

  • new (str) – New name.

Return type

ImageContainer

Returns

Modifies and returns self.