> For the complete documentation index, see [llms.txt](https://documentation.astera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.astera.com/dataprep/layout/add-column.md).

# Add Column

In this document, you will explore how to add a column in Astera Dataprep.

1. To add a column, click *Layout* in the toolbar and select *Add Column.*

<figure><img src="https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FfT1uBeO9VrCRLdtRJrBj%2F0.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Once done, the *Recipe Configuration – Add Column* panel will open.

<img src="https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FhVJV7JKqkBVmSHMAS40x%2F1.png?alt=media" alt="" width="383">

3. In this panel, you can specify the *Name, Type, Header, Position,* and *Index.*

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2Fg7xw3Q4dtylDCqr4A1TU%2F2.png?alt=media)

* **Name:** The name of the new column.
* **Type:** The datatype of the new column to be added.
* **Header:** Specifies the column name when writing to a file.
* **Position:** Consists of various options to help specify where the new column should be added.
  * **Index:** Adds the column at the specified Index position.
  * **Start:** Adds a column to the start of the dataset.
  * **End:** Adds a column to the end of the dataset.
  * **Move Before:** Adds a column before a specified column in the dataset. Once selected, you must specify the column through the Reference drop-down.
  * **Move After:** Adds a column after a specified column in the dataset. Once selected, you must specify the column through the Reference drop-down.

<img src="https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FpXY0NxbgoiEPI3oCXVIO%2F3.png?alt=media" alt="" width="372">

* **Value:** You can specify the expression that you want to be applied on the objects for the new column.
  * This can be done directly in the expression box, or you can open the *Expression Builder* by clicking ![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FNEDqydPib8PgrV5WySDO%2F3.png?alt=media) next to the expression box.
  * Here, we have simply added 100 to our existing ‘*Freight*’ value.

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2Fx2sja6rLEXAKlLLLDxlH%2F4.png?alt=media)

4. Now, let’s select *Apply* ![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2F7VsSbSLkUrOXP5XbWHhi%2F4.png?alt=media) to add this new column to our dataset.
5. Once done, you can see that the new column with your specified configurations has been added to the grid.

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FVOh6wmzxK2bMWdFQ5gVo%2F6.png?alt=media)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.astera.com/dataprep/layout/add-column.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
