pyarrow.compute.shift_left_checked#

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

Left shiftx byy.

The shift operates as if on the two’s complement representation of the number.In other words, this is equivalent to multiplyingx by 2 to the powery,even if overflow occurs.An error is raised ify (the amount to shift by) is (1) negative or(2) greater than or equal to the precision ofx.See “shift_left” for a variant that doesn’t fail for an invalid shift amount.

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.