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 and true = true

  • false and null = null

  • null and false = null

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