snowflake.snowpark.functions.div0¶
- snowflake.snowpark.functions.div0(dividend: ColumnOrName | int | float, divisor: ColumnOrName | int | float) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L1127-L1150)¶
Performs division like the division operator (/), but returns 0 when the divisor is 0 (rather than reporting an error).
Example: