dataFrame.columns — clear()

Description

The clear() method of the columns object clears all data values in the selected columns while preserving their column names.

Signature

dataFrame.columns(...columnNames).clear()
Scope
dataFrame
Family
columns
Returns
mutates

Argument

columnNames ( string[] )
The name of the columns from which to clear values.

Example

// clear the values of the 'revenue' and 'month' columns of the dataFrame
dataFrame.columns('revenue', 'month').clear();