snowflake.snowpark.functions.stddev_samp¶
- snowflake.snowpark.functions.stddev_samp(e: Union[Column, str]) Column [source]¶
Returns the sample standard deviation (square root of sample variance) of non-NULL values. If all records inside a group are NULL, returns NULL. Alias of
stddev()
.- Example::
>>> from snowflake.snowpark.types import DecimalType >>> df = session.create_dataframe( ... [4, 9], ... schema=["N"], ... ).select(stddev_samp(col("N")).cast(DecimalType(scale=4))) >>> df.collect() [Row(CAST (STDDEV_SAMP("N") AS NUMBER(38, 4))=Decimal('3.5355'))]