Skip to main content

Head

Return the first n rows.

Return the first n rows

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
Options
nNumber of rows to return.integer—Yes
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No

Examples​

wrangles:
- select.head:
n: 2
ProductManufacturer
Ball BearingSKF
Bearing RaceTimken
Needle BearingAcme Bearings
Roller BearingGeneral Bearing Co.
ProductManufacturer
Ball BearingSKF
Bearing RaceTimken
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID53
Catalog keyselect.head
Recipe keyselect.head
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.head
Legacy UUID237af1ec-db7d-415a-88b7-70586a2191fb

Sources