...
- If a row contains a missing or null value, it is not factored into the calculation. If the entire column contains no values, the function returns a null value.
- If there is a tie in which the most occurrences of a value is shared between values, then the lowest value of the evaluated set of values is returned.
- When used in a
pivot
transform, the function is computed for each instance of the value specified in the group
parameter. See Pivot Transform.
For a version of this function computed over a rolling window of rows, see ROLLINGMODE Function.
D lang syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | pivot value:mode(count_visits) group:postal_code limit:1 |
---|
|
mode(count_visits) |
Output: Returns the mode of the values in the count_visits
column.
D lang syntax |
---|
RawWrangle | true |
---|
Type | syntax |
---|
showNote | true |
---|
WrangleText | pivot value:mode(function_col_ref) [group:group_col_ref] [limit:limit_count] |
---|
|
mode(function_col_ref) [group:group_col_ref] [limit:limit_count] |
Argument | Required? | Data Type | Description |
---|
function_col_ref | Y | string | Name of column to which to apply the function |
...