polars.Series.has_validity#
- Series.has_validity() bool[source]#
- Return True if the Series has a validity bitmask. - 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 be- false.- To confirm that a column has - nullvalues use- null_count().