[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/../api/../api/../generated/pyarrow.compute.sign.html [Back]  [Original]

pyarrow.compute.sign — Apache Arrow v25.0.1
Back to top
Search the docs ...:

pyarrow.compute.sign#

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

Get the signedness of the arguments element-wise.

Output is any of (-1,1) for nonzero inputs and 0 for zero input. NaN values return NaN. Integral values return signedness as Int8 and floating-point values return it with the same type as the input values.

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.


Web Proxy Viewer  |  New URL  |  Original Page