binaryop#
- cudf._lib.pylibcudf.binaryop.binary_operation(signatures, args, kwargs, defaults, _fused_sigindex={})#
Perform a binary operation between a column and another column or scalar.
lhs
andrhs
may be aColumn
or 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.
- Returns:
- pylibcudf.Column
The result of the binary operation
- cudf._lib.pylibcudf.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