Dataframe 0.12 Help

countDistinct

Returns number of distinct combinations of values in selected columns of DataFrame.

df.countDistinct { age and name }
val age by column<Int>() val name by columnGroup() df.countDistinct { age and name }
df.countDistinct("age", "name")

When columns are not specified, returns number of distinct rows in DataFrame.

df.countDistinct()
Last modified: 22 January 2024