pyarrow.compute.and_not_kleene#

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

布尔值的逻辑“与非”运算(Kleene 逻辑)。

此函数在处理空值(null)时的行为如下:

  • 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

换句话说,在此上下文中,null 值实际上表示“未知”。一个未知值“与非”true 始终为 false,同样地,false“与非”一个未知值也始终为 false。若需要其他空值处理行为,请参阅函数“and_not”。

参数:
x类数组或类标量

计算函数的参数。

y类数组或类标量

计算函数的参数。

memory_poolpyarrow.MemoryPool, 可选

如果不传递,将从默认内存池分配内存。