cudf.core.column.string.StringMethods.hex_to_int#

StringMethods.hex_to_int() SeriesOrIndex[source]#

返回由每个十六进制字符串表示的整数值。 字符串被解释为具有十六进制(基数为16)的字符。

Returns:
Series/Index of str dtype

示例

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