Follow up of #533.
The countDistinct is currently not defined on Pivot and PivotGroupBy. We need to add these overloads for the API consistency (for example, the count function has them) and more straightforward counting distinct values on these receivers.
Functionality to add:
-
On Pivot:
df.pivot { column_0 }.countDistinct()
df.pivot { column_0 }.countDistinct { column_1 }
-
On PivotGroupBy:
df.pivot { column_0 }.groupBy { column_1 }.countDistinct()
df.pivot { column_0 }.groupBy { column_1 }.countDistinct { column_2 }
Tests and KDocs should be added, relevant existing documentation (for countDistinct and pivot) should be updated.
Follow up of #533.
The
countDistinctis currently not defined onPivotandPivotGroupBy. We need to add these overloads for the API consistency (for example, thecountfunction has them) and more straightforward counting distinct values on these receivers.Functionality to add:
On
Pivot:df.pivot { column_0 }.countDistinct()df.pivot { column_0 }.countDistinct { column_1 }On
PivotGroupBy:df.pivot { column_0 }.groupBy { column_1 }.countDistinct()df.pivot { column_0 }.groupBy { column_1 }.countDistinct { column_2 }Tests and KDocs should be added, relevant existing documentation (for
countDistinctandpivot) should be updated.