Skip to main content

Explode

Explode a column of lists into rows.

Explode a column of lists into rows

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the column(s) to explode. If multiple columns are included they must contain lists of the same length.string, integer, array—Yes
Options
drop_emptyIf true, any rows that contain an empty list will be dropped. If false, rows that contain empty lists will keep 1 row with an empty value. Default False.booleanfalseNo
Formatting
reset_indexReset the index after exploding. Default True.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:
- explode:
input: Products
ProductsManufacturer
[Ball Bearing, Bearing Seal]SKF
[Angle Grinder, Drill, Impact Driver]Milwaukee
Solid State RelaySchneider
ProductsManufacturer
Ball BearingSKF
Bearing SealSKF
Angle GrinderMilwaukee
DrillMilwaukee
Impact DriverMilwaukee
Solid State RelaySchneider
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID77
Catalog keyexplode
Recipe keyexplode
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
NamespaceRoot-level
Documentation groupsplit
AliasesNone
Runtime symbolwrangles.recipe_wrangles.pandas.explode
Legacy UUID4e4b13ac-8d50-4b2c-85c8-2c31de1e817d

Sources