round#
2026-03-11
19 min read time
Applies to Linux
- pylibhipdf.round.RoundingMethod#
alias of
rounding_method
- pylibhipdf.round.round(Column source, int32_t decimal_places=0, rounding_method round_method=rounding_method.HALF_UP, Stream stream=None, DeviceMemoryResource mr=None) Column#
Rounds all the values in a column to the specified number of decimal places.
For details, see
round().Parameters#
- sourceColumn
The Column for which to round values.
- decimal_places: int32_t, optional
The number of decimal places to round to (default 0)
- round_method: rounding_method, optional
The method by which to round each value. Can be one of { RoundingMethod.HALF_UP, RoundingMethod.HALF_EVEN } (default rounding_method.HALF_UP)
- streamStream | None
CUDA stream on which to perform the operation.
- mrDeviceMemoryResource | None
Device memory resource used to allocate the returned column’s device memory.
Returns#
- pylibcudf.Column
A Column with values rounded