dataFrame.column.compare — isEmpty()

Description

The isEmpty() method of the compare object returns a boolean mask indicating which values are empty.

Signature

dataFrame.column(columnName).compare.isEmpty()
Scope
column
Family
compare
Returns
mask

Argument

columnName (string)
The name of the column to compare values from.

Returns

mask ( boolean[] )
A boolean mask indicating the rows whose values are empty.
  • Empty value: 1
  • Otherwise: 0

Example

// get the mask of rows where the column 'name' is empty
var mask = df.column('name').compare.isEmpty();

// set mask to dataFrame
df.column('unamed').set(mask);