<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/transform/transform_lib.py#L50-L67) |

Renames the feature.

    tfds.transform.rename_feature(
        from_: str, to: str
    ) -> ExampleTransformFn

Note that if `to` already exists in the example, then it will be overridden.

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `from_` | the name of the feature that must be renamed. |
| `to` | the feature name to which it must be renamed. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| function that renames the feature of an example. ||

<br />