Group by
Definition
Combines rows into groups based on matching values in specified columns.
Parameters
-
Group by:
- Def: Specify the columns for grouping element.
-
Functions (+add):
- Def: Specify the function to apply in the groupBy.
2.1. Column input:
- Def: Specify the name of the column.
2.2. Column output:
- Def: Specify the name of the column.
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.
-
median:
- Def: Returns the median of the Column input for each group.
Link to the Median page.
- Def: Returns the median 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)
-
firstValue:
- Def: Returns the first value of the Column input for each group (you need to order one field).
-
lastValue:
- Def: Returns the last value of the Column input for each group (you need to order one field).
OrderBy:
-
desc_null_first:
- Descending order with the nulls in first position.
-
asc_null_first:
- Ascending order with the nulls in first position.
-
desc_null_last:
- Descending order with the nulls in last position.
-
asc_null_last:
- Ascending order with the nulls in last position.