cudf.core.column.string.StringMethods.isupper#
- StringMethods.isupper() SeriesOrIndex #
Check whether all characters in each string are uppercase.
This is equivalent to running the Python string method str.isupper() for each element of the Series/Index. 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.
isinteger
Check whether all characters are integer.
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.
Examples
>>> import cudf >>> s = cudf.Series(['leopard', 'Golden Eagle', 'SNAKE', '']) >>> s.str.isupper() 0 False 1 False 2 True 3 False dtype: bool