hipdf.core.column.string.StringMethods.istitle

hipdf.core.column.string.StringMethods.istitle#

20 min read time

Applies to Linux

StringMethods.istitle() SeriesOrIndex#

Check whether each string is title formatted. The first letter of each word should be uppercase and the rest should be lowercase.

Equivalent to str.istitle().

Returns#

Series or Index of object

Examples#

>>> import cudf
>>> data = ['leopard', 'Golden Eagle', 'SNAKE', ''])
>>> s = cudf.Series(data)
>>> s.str.istitle()
0    False
1     True
2    False
3    False
dtype: bool