convert_integers#

pylibcudf.strings.convert.convert_integers.from_integers(Column integers) Column#

Returns a new strings column converting the integer values from the provided column into strings.

For details, cpp:func:cudf::strings::from_integers.

Parameters:
integersColumn

Strings instance for this operation.

Returns:
Column

New strings column with integers as strings.

pylibcudf.strings.convert.convert_integers.hex_to_integers(Column input, DataType output_type) Column#

Returns a new integer numeric column parsing hexadecimal values from the provided strings column.

For details, cpp:func:cudf::strings::hex_to_integers.

Parameters:
inputColumn

Strings instance for this operation.

output_typeDataType

Type of integer numeric column to return.

Returns:
Column

New column with integers converted from strings.

pylibcudf.strings.convert.convert_integers.integers_to_hex(Column input) Column#

Returns a new strings column converting integer columns to hexadecimal characters.

For details, cpp:func:cudf::strings::integers_to_hex.

Parameters:
inputColumn

Integer column to convert to hex.

Returns:
Column

New strings column with hexadecimal characters.

pylibcudf.strings.convert.convert_integers.is_hex(Column input) Column#

Returns a boolean column identifying strings in which all characters are valid for conversion to integers from hex.

For details, cpp:func:cudf::strings::is_hex.

Parameters:
inputColumn

Strings instance for this operation.

Returns:
Column

New column of boolean results for each string.

pylibcudf.strings.convert.convert_integers.is_integer(Column input, DataType int_type=None) Column#

Returns a boolean column identifying strings in which all characters are valid for conversion to integers.

For details, cpp:func:cudf::strings::is_integer.

Parameters:
inputColumn

Strings instance for this operation.

int_typeDataType

Integer type used for checking underflow and overflow. By default, does not check an integer type for underflow or overflow.

Returns:
Column

New column of boolean results for each string.

pylibcudf.strings.convert.convert_integers.to_integers(Column input, DataType output_type) Column#

Returns a new integer numeric column parsing integer values from the provided strings column.

For details, cpp:func:cudf::strings::to_integers.

Parameters:
inputColumn

Strings instance for this operation.

output_typeDataType

Type of integer numeric column to return.

Returns:
Column

New column with integers converted from strings.