pyarrow.compute.shift_right#

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

Right shiftx byy.

This is equivalent to dividingx by 2 to the powery.x is returned ify (the amount to shift by) is: (1) negative or(2) greater than or equal to the precision ofx.Use function “shift_right_checked” if you want an invalid shift amountto 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.