Skip to content

LazyColumn.isnull

isnull

isnull() -> LazyColumn

Returns a boolean column indicating whether each value is null (NA).

Returns:

Name Type Description
LazyColumn LazyColumn

A new LazyColumn of boolean values, where True indicates a null value and False indicates a non-null value.

Examples:

print(df.head())
#    col1  my_column_to_test
# 0     1              10.0
# 1     2               None
# 2     3               2.0
# 3     4               None
# 4     5               4.0

df["my_column_to_test"].isnull()
# [False, True, False, True, False]