dataFrame.columns — get()

Description

The get() method of the columns object returns all data values of the selected columns.

Signature

dataFrame.columns(...columnNames).get()
Scope
dataFrame
Family
columns
Returns
array

Argument

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

Returns

values (array)
An array containing the values of the selected columns.

Example

// get the values of the columns 'revenue' and 'month' of the dataFrame
var values = dataFrame.columns('revenue', 'month').get();