cudf.core.column.string.StringMethods.htoi#

StringMethods.htoi() SeriesOrIndex#

Returns integer value represented by each hex string. String is interpretted 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