cudf.core.column.string.StringMethods.isinteger#

StringMethods.isinteger() SeriesOrIndex#

Check whether all characters in each string form 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

isalnum

Check whether all characters are alphanumeric.

isalpha

Check whether all characters are alphabetic.

isdecimal

Check whether all characters are decimal.

isdigit

Check whether all characters are digits.

isnumeric

Check whether all characters are numeric.

isfloat

Check whether all characters are float.

islower

Check whether all characters are lowercase.

isspace

Check whether all characters are whitespace.

isupper

Check whether all characters are uppercase.

Examples

>>> import cudf
>>> s = cudf.Series(["1", "0.1", "+100", "-15", "abc"])
>>> s.str.isinteger()
0     True
1    False
2     True
3     True
4    False
dtype: bool
>>> s = cudf.Series(["this is plan text", "", "10 10"])
>>> s.str.isinteger()
0    False
1    False
2    False
dtype: bool