MCPcopy Create free account
hub / github.com/numpy/numpy / istitle

Function istitle

numpy/core/defchararray.py:961–983  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

959
960@array_function_dispatch(_unary_op_dispatcher)
961def 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)

Callers 1

istitleMethod · 0.85

Calls 1

_vec_stringFunction · 0.90

Tested by

no test coverage detected