cudf.core.accessors.string.StringMethods.htoi#

StringMethods.htoi() Series | Index[source]#

Returns integer value represented by each hex string. String is interpreted to have hex (base-16) characters.

Returns:
Series/Index of str dtype

Examples

>>> import cudf
>>> s = cudf.Series(["1234", "ABCDEF", "1A2", "cafe"])
>>> s.str.htoi()
0        4660
1    11259375
2         418
3       51966
dtype: int64