null¶
- null = <class 'dataframe_api.null'>¶
A
nullobject to represent missing data.Not meant to be instantiated, use
nulldirectly.nullis a scalar, and may be used when constructing aColumnfrom 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_nullorColumn.is_nullto check for presence of missing values. For__bool__: truthiness of a missing value is ambiguous.
Notes
Like for Python scalars, the
nullobject may be duck typed so it can reside on (e.g.) a GPU. Hence, the builtiniskeyword should not be used to check if an object is thenullobject.