pyarrow.compute.and_kleene

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

Logical ‘and’ boolean values (Kleene logic).

This function behaves as follows with nulls:

  • true and null = null

  • null and true = null

  • false and null = false

  • null and false = false

  • null and null = null

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

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.