reduce

reduce#

2026-03-11

19 min read time

Applies to Linux

pylibhipdf.reduce.ScanType#

alias of scan_type

pylibhipdf.reduce.minmax(Column col, Stream stream=None) tuple#

Compute the minimum and maximum of a column

For details, see cudf::minmax documentation.

Parameters#

colColumn

The column to compute the minimum and maximum of.

streamStream | None

CUDA stream on which to perform the operation.

Returns#

tuple

A tuple of two Scalars, the first being the minimum and the second being the maximum.

pylibhipdf.reduce.reduce(Column col, Aggregation agg, DataType data_type, Stream stream=None) Scalar#

Perform a reduction on a column

For details, see cudf::reduce documentation.

Parameters#

colColumn

The column to perform the reduction on.

aggAggregation

The aggregation to perform.

data_typeDataType

The data type of the result.

streamStream | None

CUDA stream on which to perform the operation.

Returns#

Scalar

The result of the reduction.

pylibhipdf.reduce.scan(Column col, Aggregation agg, scan_type inclusive, Stream stream=None) Column#

Perform a scan on a column

For details, see cudf::scan documentation.

Parameters#

colColumn

The column to perform the scan on.

aggAggregation

The aggregation to perform.

inclusivescan_type

The type of scan to perform.

streamStream | None

CUDA stream on which to perform the operation.

Returns#

Column

The result of the scan.