polars.Series.has_validity

Series.has_validity() bool

Returns True if the Series has a validity bitmask. If there is none, it means that there are no null values. Use this to swiftly assert a Series does not have null values.