null¶
- null = <class 'dataframe_api.null'>¶
A
null
object to represent missing data.Not meant to be instantiated, use
null
directly.null
is a scalar, and may be used when constructing aColumn
from a Python sequence withcolumn_from_sequence()
. It does not supportis
,==
orbool
.- Raises:
TypeError – From
__eq__
and from__bool__
. For__eq__
: a missing value must not be compared for equality directly. Instead, useDataFrame.is_null
orColumn.is_null
to check for presence of missing values. For__bool__
: truthiness of a missing value is ambiguous.
Notes
Like for Python scalars, the
null
object may be duck typed so it can reside on (e.g.) a GPU. Hence, the builtinis
keyword should not be used to check if an object is thenull
object.