snowflake.snowpark.functions.count_distinct¶
- snowflake.snowpark.functions.count_distinct(*cols: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/functions.py#L949-L972)¶
Returns either the number of non-NULL distinct records for the specified columns, or the total number of the distinct records.
Example