FILL_WITH_MODE
Returns a column with missing data replaced by the mode of all values.
You can also specify tie-breaker logic, where some of the values are identical. For example, consider the following values:
1 2 2 3 3 4
A modeType of MINIMUM causes FILL_WITH_MODE to
return 2 as the mode value. If modeType is MAXIMUM, the mode
is 3. For AVERAGE, the mode is 2.5.
Parameters
-
sourceColumn– The name of an existing column. -
modeType– How to resolve tie values in the data. This value must beMINIMUM,NONE,AVERAGE, orMAXIMUM.
Example
{ "RecipeAction": { "Operation": "FILL_WITH_MODE", "Parameters": { "modeType": "MAXIMUM", "sourceColumn": "age" } } }