snowflake.snowpark.functions.skew¶
- snowflake.snowpark.functions.skew(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L1096-L1111)¶
Returns the sample skewness of non-NULL records. If all records inside a group are NULL, the function returns NULL.
- Example::
>>> from snowflake.snowpark.types import DecimalType >>> df = session.create_dataframe( ... [10, 10, 20, 25, 30], ... schema=["a"] ... ).select(skew("a").cast(DecimalType(scale=4))) >>> df.collect() [Row(CAST (SKEW("A") AS NUMBER(38, 4))=Decimal('0.0524'))]