Skip to content

Commit

Permalink
docs(python): cross-reference null_count from has_validity (clari…
Browse files Browse the repository at this point in the history
…fies the correct way to check for nulls) (#11323)
  • Loading branch information
alexander-beedie authored Sep 26, 2023
1 parent 40c2a9c commit 5d5bb6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3293,11 +3293,13 @@ def has_validity(self) -> bool:
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
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 :func:`null_count`.
"""
return self._s.has_validity()

Expand Down

0 comments on commit 5d5bb6a

Please sign in to comment.