Head
Return the first n rows.
Return the first n rows
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| Options | ||||
n | Number of rows to return. | integer | — | Yes |
| Conditions | ||||
if | Condition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}. | string | — | No |
where | Filter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'. | string | — | No |
where_params | Values used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name. | array, object | — | No |
Examples
wrangles:
- select.head:
n: 2
| Product | Manufacturer |
|---|---|
| Ball Bearing | SKF |
| Bearing Race | Timken |
| Needle Bearing | Acme Bearings |
| Roller Bearing | General Bearing Co. |
| Product | Manufacturer |
|---|---|
| Ball Bearing | SKF |
| Bearing Race | Timken |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 53 |
| Catalog key | select.head |
| Recipe key | select.head |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | select |
| Documentation group | select |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.select.head |
| Legacy UUID | 237af1ec-db7d-415a-88b7-70586a2191fb |
Sources