unary#
- pylibcudf.unary.UnaryOperator#
See also
cudf::unary_operator.Enum members
SINCOSTANARCSINARCCOSARCTANSINHCOSHTANHARCSINHARCCOSHARCTANHEXPLOGSQRTCBRTCEILFLOORABSRINTBIT_COUNTBIT_INVERTNOTNEGATE
- pylibcudf.unary.cast(Column input, DataType data_type, Stream stream=None) Column#
Cast a column to a different data type.
For details, see
cast().- Parameters:
- inputColumn
The column to check.
- data_typeDataType
The data type to cast to.
- streamStream | None
CUDA stream on which to perform the operation.
- Returns:
- pylibcudf.Column
A boolean column with
Truerepresenting null values.
- pylibcudf.unary.is_nan(Column input, Stream stream=None) Column#
Check whether elements of a column are nan.
For details, see
is_nan().- Parameters:
- inputColumn
The column to check.
- streamStream | None
CUDA stream on which to perform the operation.
- Returns:
- pylibcudf.Column
A boolean column with
Truerepresenting nan values.
- pylibcudf.unary.is_not_nan(Column input, Stream stream=None) Column#
Check whether elements of a column are not nan.
For details, see
is_not_nan().- Parameters:
- inputColumn
The column to check.
- streamStream | None
CUDA stream on which to perform the operation.
- Returns:
- pylibcudf.Column
A boolean column with
Truerepresenting non-nan values.
- pylibcudf.unary.is_null(Column input, Stream stream=None) Column#
Check whether elements of a column are null.
For details, see
is_null().- Parameters:
- inputColumn
The column to check.
- streamStream | None
CUDA stream on which to perform the operation.
- Returns:
- pylibcudf.Column
A boolean column with
Truerepresenting null values.
- pylibcudf.unary.is_supported_cast(DataType from_, DataType to) bool#
Check if a cast between datatypes is supported.
For details, see
is_supported_cast().- Parameters:
- from_
The source datatype
- to
The target datatype
- Returns:
- bool
True if the cast is supported.
- pylibcudf.unary.is_valid(Column input, Stream stream=None) Column#
Check whether elements of a column are valid.
For details, see
is_valid().- Parameters:
- inputColumn
The column to check.
- streamStream | None
CUDA stream on which to perform the operation.
- Returns:
- pylibcudf.Column
A boolean column with
Truerepresenting valid values.
- pylibcudf.unary.unary_operation(Column input, unary_operator op, Stream stream=None) Column#
Perform a unary operation on a column.
For details, see
unary_operation().- Parameters:
- inputColumn
The column to operate on.
- opUnaryOperator
The operation to perform.
- streamStream | None
CUDA stream on which to perform the operation.
- Returns:
- pylibcudf.Column
The result of the unary operation