Shape · Combine tables

Zip

Puts two tables side by side, row 1 with row 1, row 2 with row 2, with no key needed. Both tables must have the same number of rows.

Also known as: Join by position, bind columns

How it works

Wire the two tables into left and right. Rows are paired by position, so both tables must have the same number of rows; otherwise the run stops with an error giving both counts. A column name present on both sides gets the Left suffix and Right suffix, _left and _right by default; set a Right-column prefix instead to rename only the right column and leave the left name alone. Both tables are loaded into memory for the pairing, so keep it for tables of moderate size.

Inputs and outputs

Inputs

  • left — Table
  • right — Table

Outputs

  • data — Table

Settings

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

The same settings, as the Assistant writes them
{
  suffixLeft?: string
  suffixRight?: string
  rightPrefix?: string
}

suffixes applied to columns present in both tables; a rightPrefix renames only the right one instead

Example

A model scored a table and returned only a prediction column in the same row order. Zip the original rows with the scores to put prediction next to each row without a key.