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

snowflake.snowpark.functions.is_null

snowflake.snowpark.functions.is_null(e: ColumnOrName) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L955-L967)

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
语言: 中文