pyarrow.compute.and_not_kleene#

pyarrow.compute.and_not_kleene(x, y, /, *, memory_pool=None)#

Logical ‘and not’ boolean values (Kleene logic).

This function behaves as follows with nulls:

  • true and not null = null

  • null and not false = null

  • false and not null = false

  • null and not true = false

  • null and not null = null

In other words, in this context a null value really means “unknown”, and an unknown value ‘and not’ true is always false, as is false ‘and not’ an unknown value. For a different null behavior, see function “and_not”.

Parameters:
xArray-like or scalar-like

Argument to compute function.

yArray-like or scalar-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.