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
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the column(s) to edit. | string, integer, array | — | Yes |
output | Name of the output column(s). | string, array, null | null | No |
| Options | ||||
length | Number 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 | ||||
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.left:
input: Column
output: Result
length: 3
| Column |
|---|
| pudding |
| Result |
|---|
| pud |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 55 |
| Catalog key | select.left |
| Recipe key | select.left |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | select |
| Documentation group | select |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.select.left |
| Legacy UUID | 5cdd9857-0c77-43bf-80d7-d0a8cb6f980b |
Sources