Skip to content

Pivot Columns

Description

Widens the data with the help of value, index, and labels columns.

Input

Data only

Output

Transformed Data


Configuration Fields

Index column

  • Generate a new row for each change of value in the index column.

Labels column

  • Create a column for each value in the label column.

Values column

Populate cells with the values of the values column. When several rows have the same index and label, the pivot only keeps the value corresponding to the last row in the output.

Sample Input

idcategoryproductpricein_stock
1ElectronicsLaptop500true
2ElectronicsCamera350false
3ElectronicsTablet250true
4FurnitureSofa600true
5FurnitureBed450true
6FurnitureTable150false

Sample Configuration

alt text


Sample Output

categoryLaptopCameraTabletSofaBedTable
Electronics500350250
Furniture600450150