dataFrame.column.compare — neq()
Description
The neq() method of the compare object returns a boolean mask indicating which rows do not contain exactly the specified value.
Signature
dataFrame.column(columnName).compare.neq(value)Arguments
columnName(string)- The name of the column to compare values from.
value(any)- The value to compare against.
Returns
mask( boolean[] )- A boolean mask indicating the rows whose values are not equal to the specified value.
- Not equal to the value:
1 - Otherwise:
0
- Not equal to the value:
Example
// higlight rows where the column 'name' does not contain exactly 'john'
var mask = df.column('name').compare.neq('john');
// set mask to dataFrame
df.column('not_john').set(mask)