cudf.core.column.string.StringMethods.ishex#
- StringMethods.ishex() SeriesOrIndex #
Check whether all characters in each string form a hex integer.
If a string has zero characters, False is returned for that check.
- Returns
- Series or Index of bool
Series or Index of boolean values with the same length as the original Series/Index.
See also
Examples
>>> import cudf >>> s = cudf.Series(["", "123DEF", "0x2D3", "-15", "abc"]) >>> s.str.ishex() 0 False 1 True 2 True 3 False 4 True dtype: bool