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.


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 be false.

To confirm that a column has null values use has_nulls().