dataFrame.column.compare — isMin()
Description
The isMin() method of the compare object returns a boolean mask indicating which rows contain the minimum value of the selected column. Multiple matches may be returned when the minimum value appears more than once.
Signature
dataFrame.column(columnName).compare.isMin()Argument
columnName(string)- The name of the column to compare values from.
Returns
mask( boolean[] )- A boolean mask indicating the rows whose values are equal to the minimum value of the selected column.
- Min value:
1 - Otherwise:
0
- Min value:
Example
// get the mask of rows where the column 'age' is the min
var mask = df.column('age').compare.isMin();
// set mask to dataFrame
df.column('age_min').set(mask);