snowflake.snowpark.functions.mean¶
- snowflake.snowpark.functions.mean(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L852-L863)¶
Return the average for the specific numeric columns. Alias of
avg()
.Example:
>>> df = session.create_dataframe([1, 3, 10, 1, 3], schema=["x"]) >>> df.select(mean("x").as_("x")).collect() [Row(X=Decimal('3.600000'))]