str.istitle() → ks.Series

Check whether all characters in each string are titlecase.

This is equivalent to running the Python string method str.istitle() for each element of the Series/Index. If a string has zero characters, False is returned for that check.


>>> s = ks.Series(['leopard', 'Golden Eagle', 'SNAKE', ''])

The s.str.istitle method checks for whether all words are in title case (whether only the first letter of each word is capitalized). Words are assumed to be as any sequence of non-numeric characters separated by whitespace characters.

>>> s.str.istitle()
0    False
1     True
2    False
3    False
dtype: bool