Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. Call `str.istitle` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unicode R
(a)
| 959 | |
| 960 | @array_function_dispatch(_unary_op_dispatcher) |
| 961 | def istitle(a): |
| 962 | """ |
| 963 | Returns true for each element if the element is a titlecased |
| 964 | string and there is at least one character, false otherwise. |
| 965 | |
| 966 | Call `str.istitle` element-wise. |
| 967 | |
| 968 | For 8-bit strings, this method is locale-dependent. |
| 969 | |
| 970 | Parameters |
| 971 | ---------- |
| 972 | a : array_like of str or unicode |
| 973 | |
| 974 | Returns |
| 975 | ------- |
| 976 | out : ndarray |
| 977 | Output array of bools |
| 978 | |
| 979 | See Also |
| 980 | -------- |
| 981 | str.istitle |
| 982 | """ |
| 983 | return _vec_string(a, bool_, 'istitle') |
| 984 | |
| 985 | |
| 986 | @array_function_dispatch(_unary_op_dispatcher) |