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

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

pyarrow.compute.shift_right#

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

Right shift x by y.

This is equivalent to dividing x by 2 to the power y. x is returned if y (the amount to shift by) is: (1) negative or (2) greater than or equal to the precision of x. Use function shift_right_checked if you want an invalid shift amount to return an error.

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.


Web Proxy Viewer  |  New URL  |  Original Page