snowflake.snowpark.functions.skew¶
- snowflake.snowpark.functions.skew(e: ColumnOrName) Column [source]¶
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'))]