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

snowflake.snowpark.functions.mean¶

snowflake.snowpark.functions.mean(e: Union[Column, str]) → Column[source]¶

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'))]
Copy