binaryop#
2026-03-11
19 min read time
- pylibhipdf.binaryop.BinaryOperator#
alias of
binary_operator
- pylibhipdf.binaryop.binary_operation(signatures, args, kwargs, defaults, _fused_sigindex={})#
Perform a binary operation between a column and another column or scalar.
lhsandrhsmay be aColumnor aScalar, but at least one must be aColumn.For details, see
binary_operation().Parameters#
- lhsUnion[Column, Scalar]
The left hand side argument.
- rhsUnion[Column, Scalar]
The right hand side argument.
- opBinaryOperator
The operation to perform.
- output_typeDataType
The data type to use for the output.
- streamStream | None
CUDA stream on which to perform the operation.
Returns#
- pylibcudf.Column
The result of the binary operation
- pylibhipdf.binaryop.is_supported_operation(DataType out, DataType lhs, DataType rhs, binary_operator op) bool#
Check if an operation is supported for the given data types.
For details, see :cpp:func::is_supported_operation.
Parameters#
- outDataType
The output data type.
- lhsDataType
The left hand side data type.
- rhsDataType
The right hand side data type.
- opBinaryOperator
The operation to check.
Returns#
- bool
True if the operation is supported, False otherwise