datatable-columns

list datatable columns (convert column names to a list)

Creates a list of column names in a datatable

Arguments

Inputs:

data: A datatable containing named columns.

Output:

columns: This is simply a list of the columns that are in the input datatable.

Examples

Simple listing of columns from a datatable.

Example 2:

Listing the columns in an input spreadsheet before creating a list of columns to remove from that spreadsheet for export to CSV file. This data-flo is available here to copy.

Possible use cases

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

  • Outputting a list of columns in a spreadsheet to facilitate creating a list of columns to remove from that spreadsheet (see example above).

Last updated