/
Merging columns
Merging columns
In Wrangler, the Merge directive works with two columns only. If you need to merge three or more columns, use multiple merge steps in your recipe. The following example merges the records in two string columns, column_a and column_b with the strings separated by “|” and creates a new column called newcol_a_b that contains the merged records.
merge :column_a :column_b :newcol_a_b ‘|’
To merge a third column, column_c, with newcol_a_b, add another merge step to the recipe:
merge :colnew_a_b :column_c :newcol_a_b_c ‘|’
, multiple selections available,
Related content
Joining two columns
Joining two columns
More like this
Swapping two column names
Swapping two column names
More like this
Copying, deleting, and keeping columns
Copying, deleting, and keeping columns
More like this
Columns Replace directive
Columns Replace directive
Read with this
Applying a Hashing algorithm to a column
Applying a Hashing algorithm to a column
More like this
Set Column directive
Set Column directive
Read with this
Created in 2020 by Google Inc.