dataFrame.columns — remove()

Description

The remove() method of the columns object removes the selected columns from the DataFrame.

Signature

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

Argument

columnNames ( string[] )
The name of the columns to be removed.

Example

// remove the columns 'revenue' and 'month' from the dataFrame
dataFrame.columns('revenue', 'month').remove();