> For the complete documentation index, see [llms.txt](https://docs.rootcause.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rootcause.ai/more-details/applications/application-modules/rename.md).

# Rename

> Rename columns.

Renames columns by `mapping`, old name to new. Columns not in the mapping keep their names and places.

## At a glance

|                          |                        |
| ------------------------ | ---------------------- |
| Module type              | `Rename`               |
| Category                 | Primitives · Dataframe |
| Default tier             | `reactive`             |
| Runs on                  | `reactive`, `durable`  |
| Starts a flow            | no                     |
| Holds a body             | no                     |
| Keeps state between runs | no                     |
| Available in             | every application type |

## Parameters

### `mapping`

`Record<string, string>` · required · defaults to `{}`

Old column name to new. Columns absent from it keep their names and places.

## Inputs

| Port   | Kind        | Required | Description                                                                                                                           |
| ------ | ----------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `on`   | `event`     | no       | Implicit on every module that does not itself start a flow: wire an event here to make this module the start of what that event runs. |
| `data` | `dataframe` | yes      | The frame to work on.                                                                                                                 |

## Outputs

| Port     | Kind        | Connects to           | Description                         |
| -------- | ----------- | --------------------- | ----------------------------------- |
| `output` | `dataframe` | `dataframe`, `signal` | The frame with the renamed columns. |

***

[← All application modules](/more-details/applications/application-modules.md)
