dataFrame.column.fill — backward()

Description

The backward() method of the fill object fills missing values in the selected column using the next non-empty value.

Signature

dataFrame.column(columnName).fill.backward()
Scope
column
Family
fill
Returns
mask

Argument

columnName (string)
The name of the column to be fullfiled.

Returns

mask ( number[] )
An array containing the fullfiled values.

Example

// fill missing value backward in the column 'revenue'
var mask = dataFrame.column('revenue').fill.backward();

// add values to the dataFrame
dataFrame.column('newValues').set(mask);