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