Unfold Column
Description
This activity unfolds the specified column’s values into separate binary columns.
Input
Data
Output
Transformed Data
Configuration Fields
- Column to unfold The name of the column whose values will be unfolded into binary columns.
- Include original Keep input columns along with transformed columns when enabled.
Sample Input
ID | Category |
---|---|
1 | A |
2 | B |
3 | A |
4 | C |
5 | B |
Sample Configuration
Sample Output
ID | A | B | C |
---|---|---|---|
1 | 1 | 0 | 0 |
2 | 0 | 1 | 0 |
3 | 1 | 0 | 0 |
4 | 0 | 0 | 1 |
5 | 0 | 1 | 0 |