pyarrow.compute.or_kleene#

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

Logical β€˜or’ boolean values (Kleene logic).

This function behaves as follows with nulls:

  • true or null = true

  • null or true = true

  • false or null = null

  • null or false = null

  • null or null = null

In other words, in this context a null value really means β€œunknown”, and an unknown value β€˜or’ true is always true. For a different null behavior, see function β€œor”.

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.