Dataframe
 
1.0

distinct

Edit pageLast modified: 16 June 2025

Removes duplicate rows. The rows in the resulting DataFrame are in the same order as they were in the original DataFrame.

If columns are specified, resulting DataFrame will have only given columns with distinct values.

See column selectors for how to select the columns for this operation.

df.distinct { age and name }
// same as
df.select { age and name }.distinct()