binaryop#

pylibcudf.binaryop.BinaryOperator#

See also cudf::binary_operator.

Enum members

  • ADD

  • SUB

  • MUL

  • DIV

  • TRUE_DIV

  • FLOOR_DIV

  • MOD

  • PMOD

  • PYMOD

  • POW

  • INT_POW

  • LOG_BASE

  • ATAN2

  • SHIFT_LEFT

  • SHIFT_RIGHT

  • SHIFT_RIGHT_UNSIGNED

  • BITWISE_AND

  • BITWISE_OR

  • BITWISE_XOR

  • LOGICAL_AND

  • LOGICAL_OR

  • EQUAL

  • NOT_EQUAL

  • LESS

  • GREATER

  • LESS_EQUAL

  • GREATER_EQUAL

  • NULL_EQUALS

  • NULL_MAX

  • NULL_MIN

  • NULL_NOT_EQUALS

  • GENERIC_BINARY

  • NULL_LOGICAL_AND

  • NULL_LOGICAL_OR

  • INVALID_BINARY

pylibcudf.binaryop.binary_operation(signatures, args, kwargs, defaults, _fused_sigindex={})#

Perform a binary operation between a column and another column or scalar.

lhs and rhs may be a Column or a Scalar, but at least one must be a Column.

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