snowflake.snowpark.functions.log¶ snowflake.snowpark.functions.log(base: ColumnOrName | int | float, x: ColumnOrName | int | float) → Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L1714-L1729)¶ Returns the logarithm of a numeric expression. Example: CopyExpand>>> from snowflake.snowpark.types import IntegerType >>> df = session.create_dataframe([1, 10], schema=["a"]) >>> df.select(log(10, df["a"]).cast(IntegerType()).alias("log")).collect() [Row(LOG=0), Row(LOG=1)] Show lessSee moreScroll to top