You are viewing documentation about an older version (1.1.0). View latest version

snowflake.snowpark.functions.count_distinct

snowflake.snowpark.functions.count_distinct(*cols: ColumnOrName) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.1.0/src/snowflake/snowpark/functions.py#L506-L513)

Returns either the number of non-NULL distinct records for the specified columns, or the total number of the distinct records.