pyarrow.compute.log2_checked#
- pyarrow.compute.log2_checked(x, /, *, memory_pool=None)#
Compute base 2 logarithm.
Non-positive values raise an error. Null values return null. Use function “log2” if you want non-positive values to return -inf or NaN.
- Parameters:
- xArray-like or scalar-like
Argument to compute function.
- memory_pool
pyarrow.MemoryPool
, optional If not passed, will allocate memory from the default memory pool.