Page tree



Contents:

The cloud-based version of Trifacta Wrangler is now available! Read all about it, and register for your free account.

Contents:


NOTE: Transforms are a part of the underlying language, which is not directly accessible to users. This content is maintained for reference purposes only. For more information on the user-accessible equivalent to transforms, see Transformation Reference.

Moves the specified column or columns before or after another column in your dataset. 

Basic Usage

move col: FirstName before: LastName

Output: The column FirstName is moved before the column LastName.

Parameters

move col:column_ref before:column_ref | after:column_ref

NOTE: At least one of the after or before parameters must be included.

TokenRequired?Data TypeDescription
moveYtransformName of the transform
colYstringName of column or columns to move
afterbefore or after is required.stringName of column after which to place the moved columns
beforebefore or after is required.stringName of column before which to place the moved columns

For more information on syntax standards, see Language Documentation Syntax Notes.

col

Identifies the column or columns to which to apply the transform. You can specify one or more columns.

To specify multiple columns:

  • Discrete column names are comma-separated. 
  • Values for column names are case-sensitive.

Usage Notes:

 

Required?Data Type
YesString (column name)

after

move col: ZipCode after: State

Output: Moves column ZipCode so that it appears after the column State

The column after which the object of the transform is to be placed.

Usage Notes:

Required?Data Type
Either after or before is required. Do not include both.Column reference

before

move col: ItemName before: ItemColor

Output: Moves the column ItemName so that it appears before the ItemColor column in your dataset. 

The column before which the object of the transform is to be placed.

Usage Notes:

Required?Data Type
Either  after  or  before  is required. Do not include both.Column reference


Examples

Example - Reorder Columns

Source:

CBA
741
852
963

Transformation:

Transformation Name Move columns
Parameter: Column(s) A
Parameter: Option Before
Parameter: Column C

Transformation Name Move columns
Parameter: Column(s) C
Parameter: Option After
Parameter: Column B

Results:

ABC
147
258
369

Your Rating: Results: 1 Star2 Star3 Star4 Star5 Star 11 rates

This page has no comments.