list-datatable-columns

Description

list-datatable-columns adaptor creates a list of datatable column names.

Inputs

data Type: datatable Required: Yes The datatable containing columns to be listed.

Outputs

column names Type: list The list of column names.

Examples

Example 1: Default behaviour.

Inputs:

data:

id
code
name

1

GB

United Kingdom

2

TR

Turkey

3

US

United States

4

IND

India

Outputs:

column names:

  1. id

  2. code

  3. name

-> Created a list of datatable column names.

Use Cases

  • Comparing column names between two datasets by getting a list of columns from each dataset.

  • Outputting a list of columns to facilitate identifying columns to remove from the datatable using the remove-columns adaptor.

Last updated