pyarrow.compute.round¶
-
pyarrow.compute.
round
(x, *, memory_pool=None, options=None, ndigits=0, round_mode='half_to_even')¶ Round to a given precision.
Options are used to control the number of digits and rounding mode. Default behavior is to round to the nearest integer and use half-to-even rule to break ties.
- 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.
options (pyarrow.compute.RoundOptions, optional) – Parameters altering compute function semantics.
ndigits (optional) – Parameter for RoundOptions constructor. Either options or ndigits can be passed, but not both at the same time.
round_mode (optional) – Parameter for RoundOptions constructor. Either options or round_mode can be passed, but not both at the same time.