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

snowflake.snowpark.functions.mean

snowflake.snowpark.functions.mean(e: ColumnOrName) 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