dataFrame.column — insertAfter()
Description
The insertAfter() method of the column object repositions the selected column immediately after the specified column.
Signature
dataFrame.column(sourceColumnName).insertAfter(targetColumnName)Arguments
sourceColumnName(string)- The name of the column to be placed.
targetColumnName(string)- The name of the column after which the selected column will be placed.
Example
// insert the 'revenue' column of the dataFrame after the 'old revenue' column
dataFrame.column('revenue').insertAfter('old revenue');