Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix Expr.all description of Kleene logic #20409

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/polars-plan/src/dsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ impl Expr {
/// Returns whether all values in the column are `true`.
///
/// If `ignore_nulls` is `False`, [Kleene logic] is used to deal with nulls:
/// if the column contains any null values and no `true` values, the output
/// if the column contains any null values and no `false` values, the output
/// is null.
///
/// [Kleene logic]: https://en.wikipedia.org/wiki/Three-valued_logic
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def all(self, *, ignore_nulls: bool = True) -> Expr:
Ignore null values (default).

If set to `False`, `Kleene logic`_ is used to deal with nulls:
if the column contains any null values and no `True` values,
if the column contains any null values and no `False` values,
the output is null.

.. _Kleene logic: https://en.wikipedia.org/wiki/Three-valued_logic
Expand Down
Loading