rename

Contents

rename#

Catalog.rename(columns: Mapping[Any, Hashable] | Callable[[Any], Hashable]) Catalog[source]#

Renames catalog columns (not indices) and that of its margin if it exists using a dictionary or function mapping.

Parameters:
columnsdict-like or function

Transformations to apply to column names.

Returns:
Catalog

A catalog that contains the data from the original catalog with renamed columns. If a margin exists, it is renamed according to the same column name mapping.