Shape · Columns

Select Columns

Keeps only the columns you pick and drops the rest.

Also known as: Drop columns, select

How it works

Pick the columns under Columns to keep; the output carries them in the order you listed them and nothing else. With nothing picked the node passes every column through unchanged. A listed column that the input no longer has stops the run with an error, so re-check the list after renaming upstream.

Inputs and outputs

Inputs

  • data — Table

Outputs

  • data — Table

Settings

The Attributes panel of Select Columns, as in the app: the controls work, but nothing runs — there is no data behind it.

The same settings, as the Assistant writes them
{
  columns: string[]
}

exact names of the columns to keep

Example

You have a 60-column CRM export and the report only needs three fields. Pick name, signup_date and amount under Columns to keep; downstream nodes and the written file then carry only those three.