unary#
- cudf._lib.pylibcudf.unary.cast(Column input, DataType data_type) 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.
- Returns:
- pylibcudf.Column
A boolean column with
True
representing null values.
- cudf._lib.pylibcudf.unary.is_nan(Column input) Column #
Check whether elements of a column are nan.
For details, see
is_nan()
.- Parameters:
- inputColumn
The column to check.
- Returns:
- pylibcudf.Column
A boolean column with
True
representing nan values.
- cudf._lib.pylibcudf.unary.is_not_nan(Column input) Column #
Check whether elements of a column are not nan.
For details, see
is_not_nan()
.- Parameters:
- inputColumn
The column to check.
- Returns:
- pylibcudf.Column
A boolean column with
True
representing non-nan values.
- cudf._lib.pylibcudf.unary.is_null(Column input) Column #
Check whether elements of a column are null.
For details, see
is_null()
.- Parameters:
- inputColumn
The column to check.
- Returns:
- pylibcudf.Column
A boolean column with
True
representing null values.
- cudf._lib.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.
- cudf._lib.pylibcudf.unary.is_valid(Column input) Column #
Check whether elements of a column are valid.
For details, see
is_valid()
.- Parameters:
- inputColumn
The column to check.
- Returns:
- pylibcudf.Column
A boolean column with
True
representing valid values.
- cudf._lib.pylibcudf.unary.unary_operation(Column input, unary_operator op) 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.
- Returns:
- pylibcudf.Column
The result of the unary operation