discretize_on_values
discretize_on_values
Discretize column by binning its values using explicitly specified cuts points.
discretize_on_values(input: number, {
"param": value,
...
}) -> (output: category)
Each bin can optionally be assigned a label.
discretize_on_values(input: number, {
"param": value,
...
}) -> (output: category)
A quantitative column to discretize.
A new categorical column with categories corresponding to discretized bins.
Points/values used to cut the quantitative column into bins.
Names for the resulting bins. Important: Note that cutting a series of values in 3 places creates 4 bins..
Whether to automatically include the minimum and maximum values of the column as cut points.
Whether the intervals are right-inclusive, i.e. of the form (x1, x2]
, or left-inclusive [x1, x2)
.
Was this page helpful?
discretize_on_values(input: number, {
"param": value,
...
}) -> (output: category)