binaryop#
- pylibcudf.binaryop.BinaryOperator#
See also
cudf::binary_operator.Enum members
ADDSUBMULDIVTRUE_DIVFLOOR_DIVMODPMODPYMODPOWINT_POWLOG_BASEATAN2SHIFT_LEFTSHIFT_RIGHTSHIFT_RIGHT_UNSIGNEDBITWISE_ANDBITWISE_ORBITWISE_XORLOGICAL_ANDLOGICAL_OREQUALNOT_EQUALLESSGREATERLESS_EQUALGREATER_EQUALNULL_EQUALSNULL_MAXNULL_MINNULL_NOT_EQUALSGENERIC_BINARYNULL_LOGICAL_ANDNULL_LOGICAL_ORINVALID_BINARY
- pylibcudf.binaryop.binary_operation(signatures, args, kwargs, defaults, _fused_sigindex_ref=[None])#
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.
- Returns:
- pylibcudf.Column
The result of the binary operation
- 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