Skip to main content

Left

Return characters from the left of text. Strings shorter than the length defined will be unaffected.

Select characters from the left of the input. Using a negative length reverses the side of selection, selecting from the right.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the column(s) to edit.string, integer, array—Yes
outputName of the output column(s).string, array, nullnullNo
Options
lengthNumber of characters to include from the left. If negative, this will remove the specified number of characters from the left. May not equal 0.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.left:
input: Column
output: Result
length: 3
Column
pudding
Result
pud
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID55
Catalog keyselect.left
Recipe keyselect.left
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.left
Legacy UUID5cdd9857-0c77-43bf-80d7-d0a8cb6f980b

Sources