round#
- pylibcudf.round.round(Column source, int32_t decimal_places=0, rounding_method round_method=rounding_method.HALF_UP) 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)
- Returns:
- pylibcudf.Column
A Column with values rounded