turicreate.aggregate.COUNT_DISTINCT — Turi Create API 6.4.1 documentation (original) (raw)


turicreate.aggregate. COUNT_DISTINCT(src_column)

Builtin unique counter for groupby. Counts the number of unique values

Example: Get the number of unique ratings produced by each user.

sf.groupby("user", ... {'rating_distinct_count':tc.aggregate.COUNT_DISTINCT('rating')})