Dataframe 0.14 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: 27 September 2024