A bin
transformation discretizes a variable into multiple bin buckets.
This creates two new fields for the bin bucket’s starting point and ending point.
Bin
properties
Property | Type | Description |
---|---|---|
bin |
String |
A variable to bin |
as |
String |
(Optional) A new field name for the starting point of each bin bucket; if not provided, then it is {bin field name}__bin . |
end |
String |
(Optional) A new field name for the ending point of each bin bucket; if not provided, then it is {bin field name}__bin_end . |
nice |
Boolean |
(Default: true ) Whether to use “nicely” defined bin buckets. |
maxbins |
Number |
(Default: 10 ) The maximum number of bin buckets (can be ignored). |
step |
Number |
(Optional) The size of each bin bucket (can be adjusted). |
exact |
Array[Number] |
(Optional) The definition of bin buckets. If provided, nice , maxbins , and step are ignored. |