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 null = null

  • null and false = null

  • false and null = false

  • null and true = false

  • null and 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.