Remove Duplicates
Clean out repeated rows, either whole rows or matches on the columns you name.
What it does
Remove Duplicates deletes rows that repeat. It works in two ways. Leave the column picker empty to compare whole rows. Or pick a few columns, and the operation compares only those.
Remove exact duplicate rows
- Type duplicates in the Search transforms box, in the Pipeline panel.
- Select Remove Duplicates in the results list.
- Leave Select columns empty.
- Click Apply.
Every value in a row must match for the row to count as a duplicate. One different cell makes the row unique. It stays.
Match on the columns you choose
Often only one column decides identity. An email column is a good example.
- Click the Search and select columns... box under Select columns.
- Type part of a column name to narrow the list.
- Click a column to select it. Repeat for more columns.
- Click Apply.
Example: a contact export lists sam@example.com three times. Select the email column. Two of the three rows go away. The other columns come along for the ride.
Which row survives
- When you pick columns, the first matching row stays. The later ones go.
- Row order is the order in the grid at that point in your pipeline.
- More columns make the match stricter. Fewer columns remove more rows.
- With an empty picker, no row is favoured. Only one copy of each identical row remains.
For SQL users
An empty picker runs SELECT DISTINCT *. A picker with the email column runs as:
SELECT DISTINCT ON ("email") * FROM data
Try Remove Duplicates with sample data →
Related Operations
- Filter - Show only rows matching conditions
- Limit Rows - Keep only the first N rows
- Top / Bottom Rows - Show top or bottom N rows by column value