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

snowflake.snowpark.functions.is_null

snowflake.snowpark.functions.is_null(e: Union[Column, str]) Column[source]

Return true if the value in the column is null.

Example:

>>> from snowflake.snowpark.functions import is_null
>>> df = session.create_dataframe([1.2, float("nan"), None, 1.0], schema=["a"])
>>> df.select(is_null("a").as_("a")).collect()
[Row(A=False), Row(A=False), Row(A=True), Row(A=False)]
Copy