Skip to content

LazyColumn.isna

isna

isna() -> LazyColumn

A synonym for isnull(). 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             "abc"
# 1     2             None
# 2     3             "xyz"
# 3     4             None
# 4     5             "foo"

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