# scenarioplanner.converters.dataframe.common.map_target_metric_str

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google/meridian/blob/v2.2.2/scenarioplanner/converters/dataframe/common.py#L28-L47) |

Maps a TargetMetric enum to a string.

```python
scenarioplanner.converters.dataframe.common.map_target_metric_str(
    metric: target_metric_pb.TargetMetric
) -> str
```

<br />

<br />

<br />

| ## Args ||
|---|---|
| `metric` | The TargetMetric enum to map. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The string representation of the TargetMetric enum. ||

<br />