cudf.core.column.string.StringMethods.istitle#

StringMethods.istitle() SeriesOrIndex[source]#

检查每个字符串是否为标题格式。 每个单词的第一个字母应为大写,其余部分应为小写。

等同于 str.istitle().

Returns:
Series or Index of object

示例

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