pyarrow.compute.log1p¶
-
pyarrow.compute.
log1p
(x, *, memory_pool=None)¶ Compute natural log of (1+x) element-wise.
Values <= -1 return -inf or NaN. Null values return null. This function may be more precise than log(1 + x) for x close to zero.Use function “log1p_checked” if you want non-positive values to raise an error.
- Parameters
x (Array-like or scalar-like) – Argument to compute function
memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.