distinct
Removes duplicated rows based on all columns.
The rows in the resulting DataFrame are in the same order as they were in the original DataFrame.
See also distinctBy that removes duplicated rows based on the specified columns and keeps all the columns in the resulting DataFrame.
This can include column groups and nested columns.
See Selecting Columns.
For more information: See distinct on the documentation website. See distinctBy on the documentation website.
Return
A new DataFrame containing only distinct rows.
Selects the specified columns and keeps only distinct rows based on these selected columns.
The rows in the resulting DataFrame are in the same order as they were in the original DataFrame.
See also distinctBy that removes duplicated rows based on the specified columns and keeps all the columns in the resulting DataFrame.
This can include column groups and nested columns.
See Selecting Columns.
For more information: See distinct on the documentation website. See distinctBy on the documentation website.
Return
A new DataFrame containing only selected columns and distinct rows.
Parameters
The ColumnsSelector used to select columns that will be included in the resulting DataFrame and considered for evaluating distinct rows.
Selects the specified columns and keeps only distinct rows based on these selected columns.
The rows in the resulting DataFrame are in the same order as they were in the original DataFrame.
See also distinctBy that removes duplicated rows based on the specified columns and keeps all the columns in the resulting DataFrame.
This can include column groups and nested columns.
See Selecting Columns.
For more information: See distinct on the documentation website. See distinctBy on the documentation website.
Return
A new DataFrame containing only selected columns and distinct rows.
Parameters
The names of the columns to select and to consider for evaluating distinct rows.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html