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
nullvalues.Notes
While the absence of a validity bitmask guarantees that a Series does not have
nullvalues, 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
nullvalues usehas_nulls().