polars.Series.has_validity#
- Series.has_validity() bool [source]#
Return True if the Series has a validity bitmask.
Deprecated since version 0.20.30: Use
has_nulls()
instead.If there is no mask, it means that there are no
null
values.Notes
While the absence of a validity bitmask guarantees that a Series does not have
null
values, the converse is not true, eg: the presence of a bitmask does not mean that there are null values, as every value of the bitmask could befalse
.To confirm that a column has
null
values usehas_nulls()
.