datatable.cut()¶
Added in version 0.11
For each column from cols bin its values into equal-width intervals,
when nbins is specified, or into arbitrary-width intervals,
when interval edges are provided as bins.
Parameters¶
cols
FExprInput data for equal-width interval binning.
nbins
int | List[int]right_closed
boolEach binning interval is half-open. This flag indicates whether the right edge of the interval is closed, or not.
return
FExprf-expression that converts input columns into the columns filled with the respective bin ids.
The content on this page is licensed under the Creative Commons Attribution 4.0 License
(CC BY 4.0) ,
and code samples are licensed under the MIT License.