Skip to main content

Remove Duplicates

Remove duplicates from a list. Preserves input order.

Remove duplicate values in a list.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column.string, array, nullnullNo
Options
ignore_caseIgnore case when removing duplicates.booleanfalseNo
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:
- format.remove_duplicates:
input: Attack of the Clones
output: Commander
where: Rank = Commander
RankAttack of the Clones
Commander['Cody', 'Cody', 'Cody']
Captain['Rex', 'Rex', 'Rex']
Commander
['Cody']
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID35
Catalog keyformat.remove_duplicates
Recipe keyformat.remove_duplicates
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceformat
Documentation groupformat
AliasesNone
Runtime symbolwrangles.recipe_wrangles.format.remove_duplicates
Legacy UUID283b9e78-b2b2-43d0-844f-9842c33120aa

Sources