seqme.rename

Contents

seqme.rename#

seqme.rename(df, metrics)[source]#

Rename one or more metrics in the metric dataframe.

Parameters:
  • df (DataFrame) – Metric dataframe.

  • metrics (dict[str, str]) – Metrics to rename. Format: {old: new, …}.

Return type:

DataFrame

Returns:

A copy of the original dataframe with the metrics (columns) renamed.

Raises:

ValueError – If an old metric name is not present in the df, or if a new name would create a duplicate objective key.