Skip to content

Unfold column

Description

The Unfold Column activity converts the unique values of a selected categorical column into separate binary columns (also known as one-hot encoding).

Each resulting column corresponds to one unique value in the original column. A value of 1 is placed in the column if the row matches that category, and 0 otherwise. This is especially useful for preparing data for machine learning, reporting, or advanced filtering.

Use case:
When preparing data for classification models or dashboard filtering, you can unfold a “Category” or “Status” column into multiple columns for easy selection and aggregation.


Input

  • Data – Required
    A table that contains the column whose values will be expanded into individual columns.

Output

Output TypeFormatDescription
DataTabularTransformed dataset with binary columns representing unique values.

Configuration Fields

Field NameDescription
Column to UnfoldRequired. The column whose unique values will be used as new column names.
Include OriginalOptional. If enabled, retains the original columns in the output.

Sample Input

IDCategory
1A
2B
3A
4C
5B

Sample Configuration

FieldValue
Column to UnfoldCategory
Include OriginalDisabled

Sample Output

IDABC
1100
2010
3100
4001
5010

When Include Original is enabled, the original “Category” column will appear alongside the binary columns.