snowflake.snowpark.functions.zeroifnull¶
- snowflake.snowpark.functions.zeroifnull(expr: Union[snowflake.snowpark.column.Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.48.0/src/snowflake/snowpark/_functions/scalar_functions.py#L4562-L4580)¶
Returns zero if the input expression is None; otherwise, returns the input expression.
- Parameters:
expr (ColumnOrName) – The input expression to evaluate for None values.
- Returns:
Zero if the input expression is None, otherwise the original value.
- Return type:
- Examples::