dataFrame.column.compare — gte()
Description
The gte() method of the compare object returns a boolean mask indicating which values are greater than or equal to the specified number.
Signature
dataFrame.column(columnName).compare.gte(number)Arguments
columnName(string)- The name of the column to compare values from.
number(number)- The value to compare against.
Returns
mask( boolean[] )- A boolean mask indicating the rows whose values are greater than or equal to the specified number.
- Greather than or equal to the number:
1 - Otherwise:
0
- Greather than or equal to the number:
Example
// higlight rows where the column 'revenue' contains a value greater than or equal to 1000
var mask = df.column('revenue').compare.gte(1000);
// set mask to dataFrame
df.column('gte_1k').set(mask)