Pivot
Definition
Transform selected column in multiple column for each different value.
Parameters
-
Group by (+add):
- Def: Specify the columns for grouping element.
-
Pivot column:
- Def: Specify the column to transform in multiple column.
-
Function:
- Def: Specify the function to apply in the groupBy.
-
Column input:
- Def: Specify the column to apply the function.
Additionnal Comments
Functions:
-
count:
- Def: Count the element in the Column input for each group.
Link to the Count page.
- Def: Count the element in the Column input for each group.
-
countNotNull:
- Def: Count the non-null element in the Column input for each group.
Link to the Count page.
- Def: Count the non-null element in the Column input for each group.
-
CountNull:
- Def: Count the null element in the Column input for each group.
Link to the Count page.
- Def: Count the null element in the Column input for each group.
-
sum:
- Def: Sum all the element of the Column input for each group.
Link to the Sum page.
- Def: Sum all the element of the Column input for each group.
-
avg:
- Def: Returns the average of the Column input for each group.
Link to the Average page.
- Def: Returns the average of the Column input for each group.
-
mean:
- Def: Returns the mean of the Column input for each group.
-
var:
- Def: Returns the variance of the Column input for each group.
Link to the Var page.
- Def: Returns the variance of the Column input for each group.
-
std:
- Def: Returns the standart deviation of the Column input for each group.
-
max:
- Def: Returns the maximum value of the Column input for each group.
Link to the Max page.
- Def: Returns the maximum value of the Column input for each group.
-
min:
- Def: Returns the maximum value of the Column input for each group.
Link to the Min page.
- Def: Returns the maximum value of the Column input for each group.
-
distinct:
- Def: Returns all the distinct element of the Column input for each group in a single array.
-
all:
- Def: Returns all the element of the Column input for each group in a single array. (let the duplicated element).