# Take

### **Description**‌

The Take function returns a table where the first *n* rows are included in the result.

### **Syntax**

‌The syntax for the Take function is:

`Take(table, n)`

#### ‌**Parameters**

table - the table with the data.

n - the number of rows to include.

### **Returns**

‌The Take function returns a table.

### **Example**‌

Let's look at some Take function examples and explore how to use the Take function.‌

<div align="left"><img src="https://529897662-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtPTgZOYmpJka4jqs1v%2F-MZmc2hwNmUAnYJ4xByD%2F-MZqLDM_GZhrbVH2wLFi%2Fcolors.jpg?alt=media&#x26;token=6c6e94b4-4c75-454c-94b6-3f5a93d0e473" alt="Example table: colors"></div>

```
Take(colors, 2)
Result: Id: C1, Color: red & Id: C2, Color: green

Take([col: "A"] & [col: "B"] & [col: "C"], 2)
Result: [col: "A"] & [col: "B"]
```
