pyarrow.compute.negate_checked

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

Negate the arguments element-wise.

This function returns an error on overflow. For a variant that doesn’t fail on overflow, use function “negate”.

Parameters:
xArray-like or scalar-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.