Skip to main content

Select Wrangles

Select wrangles, with recipe examples, parameters, and behavior.

Drop​

Drop (Delete) selected column(s).

Drop (Delete) selected column(s)

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
columnsName of the column(s) to drop.string, array—Yes
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No

Examples​

wrangles:
- drop:
columns:
- Material
MaterialProduct Data
CeramicSKF ball brg
Rubberbrg seal
Product Data
SKF ball bearing
bearing seal
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID76
Catalog keydrop
Recipe keydrop
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.pandas.drop
Legacy UUID363bffbf-397e-4975-8382-e9efa5e9eed6

Sources


Filter​

Filter the dataframe based on the contents. If multiple filters are specified, all must be correct. For complex filters, use the where parameter.

Filter the dataframe based on the contents.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the column to filter on. If multiple are provided, all must match the criteria.string, integer, array[]No
Options
equalSelect rows where the values equal a given value.string, array, nullnullNo
not_equalSelect rows where the values do not equal a given value.string, array, nullnullNo
is_inSelect rows where the values are in a given list.string, array, nullnullNo
not_inSelect rows where the values are not in a given list.string, array, nullnullNo
greater_thanSelect rows where the values are greater than a specified value. Does include the value itself.integer, number, nullnullNo
greater_than_equal_toSelect rows where the values are greater than a specified value. Does include the value itself.integer, number, nullnullNo
less_thanSelect rows where the values are less than a specified value. Does not include the value itself.integer, number, nullnullNo
less_than_equal_toSelect rows where the values are less than a specified value. Does include the value itself.integer, number, nullnullNo
betweenValue or list of values to filter that are in between two parameter values.array, nullnullNo
containsSelect rows where the input contains the value. Allows regular expressions.string, nullnullNo
not_containsSelect rows where the input does not contain the value. Allows regular expressions.string, nullnullNo
is_nullIf true, select all rows where the value is NULL. If false, where is not NULL.boolean, nullnullNo
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 only red fruits
- filter:
input: Color
equal:
- red
ColorFruit
redApple
greenApple
orangeOrange
redStrawberry
ColorFruit
redApple
redStrawberry
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID78
Catalog keyfilter
Recipe keyfilter
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.main.filter
Legacy UUIDe3242acf-d204-433f-8373-205b77481131

Sources


Columns​

Select columns from the dataframe.

Select columns from the dataframe

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the column(s) to select.string, integer, array—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.columns:
input: Manufacturer
Part NumberManufacturer
1234SKF
5678Timken
Manufacturer
SKF
Timken
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID49
Catalog keyselect.columns
Recipe keyselect.columns
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.columns
Legacy UUIDbca12c60-3957-4dc5-83f7-5ee460df2a11

Sources


Dictionary Element​

Select one or more element of a dictionary.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column. If omitted, the input column will be replaced.string, array, nullnullNo
Options
elementThe key or keys from the dictionary to select. If a single key is provided, the value will be returned If a lists of keys are selected, the result will be a new dictionary.string—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
Errors
defaultSet the default value to return if the specified element doesn't exist. If selecting multiple elements, a dict of defaults can be set.string, number, array, object, boolean, null""No

Examples​

wrangles:
- select.dictionary_element:
input: Properties
output: Shapes
element: shapes
default: square
where: Part Number = 1234
PropertiesPart Number
{'colours': ['red', 'white', 'blue'], 'shapes': 'round', 'materials': 'tungsten'}1234
{'colours': ['green', 'yellow', 'orange'], 'shapes': 'square', 'materials': 'tungsten'}5678
Shapes
round
wrangles:
- select.dictionary_element:
input: Properties
element:
- shapes
- materials
Properties
{'colours': ['red', 'white', 'blue'], 'shapes': 'round', 'materials': 'tungsten'}
{'colours': ['green', 'yellow', 'orange'], 'shapes': 'square', 'materials': 'tungsten'}
Properties
{'shapes': 'round', 'materials': 'tungsten'}
{'shapes': 'square', 'materials': 'tungsten'}
wrangles:
- select.dictionary_element:
input: Properties
output: Output Dict
element:
- Col*
Column
{'Col1': 'A', 'Col2': 'B', 'Other3': 'C'}
ColumnOutput Dict
{'Col1': 'A', 'Col2': 'B', 'Col3': 'C'}{'Col1': 'A', 'Col2': 'B'}
wrangles:
- select.dictionary_element:
input: Properties
output: Output Dict
element:
- "regex: .*2"
Column
{'Col1': 'A', 'Col2': 'B', 'Col3': 'C'}
Output Dict
{'Col2': 'B'}
wrangles:
- select.dictionary_element:
input: Properties
output: Output Dict
element:
- Col1: Column 1
- Col2: Column 2
Column
{'Col1': 'A', 'Col2': 'B', 'Col3': 'C'}
Output Dict
{'Column 1': 'A', 'Column 2': 'B'}
wrangles:
- select.dictionary_element:
input: Properties
output: Output Dict
element:
- Col1
- Col3
default:
Col1: Z
Col3: Y
Column
{'Col1': 'A', 'Col2': 'B', 'Col3': 'C'}
{'Col1': 'D', 'Col2': 'E'}
Output Dict
{'Col1': 'A', 'Col3': 'C'}
{'Col1': 'D', 'Col3': 'Y'}
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID50
Catalog keyselect.dictionary_element
Recipe keyselect.dictionary_element
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.dictionary_element
Legacy UUID5adaeada-6da8-464f-84cb-9fb5ecc17e48

Sources


Element​

Select elements of lists or dicts using python syntax like col[0]['key'].

Select elements of lists or dictionaries using Python syntax like col[1:3]['key'].

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column and sub elements This permits by index for lists or dict and by key for dicts e.g. col[0]['key'] // [{"key":"val"}] -> "val".string, integer, array—Yes
outputName of the output column(s).string, array, nullnullNo
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
Errors
defaultSet the default value to return if the specified element doesn't exist.string, number, array, object, boolean, nullnullNo

Examples​

wrangles:
- select.element:
input: Column A[0]
output: First Element
Column A
[A, 0.9]
[B, 0.8]
First Element
A
B
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID51
Catalog keyselect.element
Recipe keyselect.element
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.element
Legacy UUID223d2f4e-3247-4189-8b6c-e73fe44c4266

Sources


Group By​

Group and aggregate the data.

Group and aggregate the data

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
byList of the input columns to group on.string, array[]No
Options
listGroup and return all values for these column(s) as a list.string, array—No
firstThe first value for these column(s).string, array—No
lastThe last value for these column(s).string, array—No
minThe minimum value for these column(s).string, array—No
maxThe maximum value for these column(s).string, array—No
meanThe mean (average) value for these column(s).string, array—No
medianThe median value for these column(s).string, array—No
nuniqueThe count of unique values for these column(s).string, array—No
countThe count of values for these column(s).string, array—No
countsReturn a dictionary containing the count of each distinct value for these column(s). Keys are converted to JSON-safe strings; missing values use the key "null" and booleans use lowercase "true"/"false".string, array—No
stdThe standard deviation of values for these column(s).string, array—No
sumThe total of values for these column(s).string, array—No
anyReturn true if any of the values for these column(s) are true.string, array—No
allReturn true if all of the values for these column(s) are true.string, array—No
p75Get a percentile. Note, you can use any integer here for the corresponding percentile.string, array—No
custom.*Placeholder for custom functions. Replace 'placeholder' with the name of the function.string, array—No
Formatting
auto_rename_columnsIf true (default), aggregated column names include the operation as a suffix (e.g. Value.sum). If false, column names are left as-is; use a dictionary entry to supply a custom output name (e.g. - Value: Total).booleantrueNo
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.group_by:
by:
- Product Type
sum: Quantity
mean: Price ($)
ProductQuantityPrice ($)Product Type
Hammer312.99Hand Tools
Ratchet Wrench126.99Hand Tools
Cordless Drill249.99Power Tools
Reciprocating Saw729.99Power Tools
Product TypeQuantity.sumPrice ($).mean
Hand Tools159.99
Power Tools939.99
wrangles:
- select.group_by:
by: Category
custom.sum_times_two: Quantity
CategoryQuantity
Hand Tools3
Hand Tools1
Hand Tools2
Power Tools4
CategoryQuantity.sum_times_two
Hand Tools12
Power Tools4
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID52
Catalog keyselect.group_by
Recipe keyselect.group_by
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.group_by
Legacy UUIDc0af10b1-423a-416c-8cb5-7e7fe1164964

Sources


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


Highest Confidence​

Select the option with the highest confidence from multiple columns. Inputs are expected to be of the form [<<value>>, <<confidence_score>>].

Select the option with the highest confidence from multiple columns. Inputs are expected to be of the form [value, confidence_score].

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputList of the input columns to select from.array—Yes
outputIf two columns; the result and confidence. If one column; [result, confidence].string, array—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.highest_confidence:
input:
- Col1
- Col2
- Col3
output: Highest Confidence
Col1Col2Col3
['A', 0.79]['B', 0.77]['C', 0.99]
Highest Confidence
['C', 0.99]
wrangles:
- select.highest_confidence:
input:
- Col1
- Col2
- Col3
output:
- Item
- Confidence
Col1Col2Col3
['A', 0.79]['B', 0.77]['C', 0.99]
ItemConfidence
C0.99
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID54
Catalog keyselect.highest_confidence
Recipe keyselect.highest_confidence
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.highest_confidence
Legacy UUID00aad85d-8cc8-42e5-86f3-e4ff916e8ac2

Sources


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


Length​

Calculate the lengths of data in a column. The length depends on the data type e.g. text will be the length of the text, lists will be the number of elements in the list.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column(s).string, integer, array—Yes
outputName of the output column(s).string, array, nullnullNo
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.length:
input: Part Code
output: Part Code Length
Part Code
6202
Part Code Length
4
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID56
Catalog keyselect.length
Recipe keyselect.length
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.length
Legacy UUID4d7a5f66-0a4a-40e0-8298-d5c55754423d

Sources


List Element​

Select a numbered element of a list (zero indexed).

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column.string, array, nullnullNo
Options
elementThe numbered element of the list to select. Starts from zero. This may use python slicing syntax to select a subset of the list.integer0No
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
Errors
defaultSet the default value to return if the specified element doesn't exist.string, number, array, object, boolean, null""No

Examples​

wrangles:
- select.list_element:
input: Col1
output: Second Element
element: 2 # Zero indexed
default: F
Col1
['A', 'B', 'C']
['D', 'E']
Third Element
C
F
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID57
Catalog keyselect.list_element
Recipe keyselect.list_element
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.list_element
Legacy UUIDec40495d-d29a-4f62-86dd-eafa43cf388a

Sources


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

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

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 right. If negative, this will remove the specified number of characters from the right. 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.right:
input: Column
output: Result
length: 3
Column
pudding
Result
ing
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID58
Catalog keyselect.right
Recipe keyselect.right
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.right
Legacy UUID89ee82ec-3bc5-4bfa-899b-7a1260ef9bdb

Sources


Sample​

Return a random sample of the rows.

Return a random sample of the rows

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
Options
rowsIf a whole number, will select that number of rows. If a decimal between 0 and 1 will select that fraction of the rows e.g. 0.1 => 10% of rows will be returned.integer, number—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.sample:
rows: 2
ProductManufacturer
Ball BearingSKF
Bearing RaceTimken
Needle BearingAcme Bearings
Roller BearingGeneral Bearing Co.
ProductManufacturer
Ball BearingSKF
Needle BearingAcme Bearings
wrangles:
- select.sample:
rows: .25
ProductManufacturer
Ball BearingSKF
Bearing RaceTimken
Needle BearingAcme Bearings
Roller BearingGeneral Bearing Co.
ProductManufacturer
Needle BearingAcme Bearings
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID59
Catalog keyselect.sample
Recipe keyselect.sample
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.sample
Legacy UUID95a84ab6-a66e-450f-8a4a-7a87e3a77932

Sources


Substring​

Return characters from the middle of text.

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
startThe position of the first character to select. If ommited will start from the beginning and length must be provided.integer, nullnullNo
lengthThe length of the string to select. If ommited will select to the end of the string and start must be provided.integer, nullnullNo
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.substring:
input: Column
output: Result
start: 2
length: 3
Column
pudding
Result
udd
wrangles:
- select.substring:
input: Column
output: Result
start: 2
Column
pudding
Result
udding
wrangles:
- select.substring:
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 ID60
Catalog keyselect.substring
Recipe keyselect.substring
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.substring
Legacy UUID8befddf8-602e-4fa9-8f16-4c547210ebec

Sources


Tail​

Return the last n rows.

Return the last 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.tail:
n: 2
ProductManufacturer
Ball BearingSKF
Bearing RaceTimken
Needle BearingAcme Bearings
Roller BearingGeneral Bearing Co.
ProductManufacturer
Needle BearingAcme Bearings
Roller BearingGeneral Bearing Co.
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID61
Catalog keyselect.tail
Recipe keyselect.tail
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.tail
Legacy UUID60853759-c160-49a4-87eb-036516a9d823

Sources


Threshold​

Select the first option if it exceeds a given threshold, else the second option.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputList of the input columns to select from.array—Yes
outputName of the output column.string—Yes
Options
thresholdThreshold above which to choose the first option, otherwise the second.number—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.threshold:
input:
- Col1
- Col2
output: Result
threshold: .77
Col1Col2
['A', 0.6]['B', 0.79]
Result
B
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID62
Catalog keyselect.threshold
Recipe keyselect.threshold
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.threshold
Legacy UUIDaf2a5dcc-0ec0-48d7-8fb4-f58d9c5391d2

Sources


Sort​

Sort the data.

Sort the data

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
byName or list of the column(s) to sort by.string, array—Yes
Options
ascendingSort ascending vs. descending. Specify a list to sort multiple columns in different orders. If this is a list of bools then it must match the length of the by.boolean, array—No
Formatting
ignore_indexIgnore Index value accepted by the runtime.booleantrueNo
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:
- sort:
by: Price
ascending: true
ItemPrice
Hammer11.99
Chisel4.99
Drill29.99
Wrench6.99
Saw13.99
ItemPrice
Chisel4.99
Wrench6.99
Hammer11.99
Saw13.99
Drill29.99
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID93
Catalog keysort
Recipe keysort
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.pandas.sort
Legacy UUID1dcf06ad-898a-4d83-862c-4774be37a687

Sources