Features.mode¶
- Features.mode(grouByFeature=None)¶
Returns a nimble object representing the mode along the features axis.
- Parameters:
groupByFeature (identifier, None) – An optional index or name of the feature that makes the result grouped by the point values along the chosen feature axis.
Examples
>>> lst = [[0, 2, 2], [0, 2, 5], [2, 3, 2]] >>> X = nimble.data(lst) >>> X.features.mode() <Matrix 1pt x 3ft 0 1 2 ┌──────── mode │ 0 2 2 >