> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/data/datatable/datacolumn/rename-data-column.md).

# Rename Data Column

Rename the data column of the specified column name or column index with a specified new column name from the data table.

### Input

* **Input** : [`DataTable Variable`](/getting-started/rpa-studio/variables.md#datatable)![](/files/-MVREnwPf_D3-qJvjjYd)\
  The Data Table object from which the column name is to be renamed.
* **Column Name** : `DynamicSearchString`\
  The name of the column is to be renamed from the column collection of the Data Table. If this property is set then the **Column Index** property is ignored.

  * `Text` - The full name of the column that is to be sorted.
  * `Regex` - The regex is used to find matching column names to be sorted.
  * `Wildcard` - The character that is used to search for matching column name. The asterisk (\*)and the question mark (?) are used as wildcard characters. The asterisk represents zero or more characters in a string. The question mark represents any one character.

{% hint style="info" %}
When multiple matches are found while using Search Methods, only the first match is considered.
{% endhint %}

{% hint style="info" %}
The `Text`, `Regex` and `Wildcard` search methods are supported.`EditDistance` is not supported.
{% endhint %}

* **Column Index**: [`Object Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  &#x20;The index of the column that is to be renamed from the column collection of the Data Table. If this property is set then the **Column Name** property is ignored. <br>
* **New Column Name**: [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)![](/files/-MVRELsGa2FL7DFDoQP4)\
  &#x20;The new column name for renaming the specified data column from the column collection of the data table.

### Output

* **Output**: [`DataTable Variable`](/getting-started/rpa-studio/variables.md#datatable)\
  The Variable that stores the output data table with a new column name.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.visualyze.ai/rpa-studio/data/datatable/datacolumn/rename-data-column.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
