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

Function isalpha

numpy/core/defchararray.py:846–868  ·  view source on GitHub ↗

Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise. Calls `str.isalpha` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of str or unic

(a)

Source from the content-addressed store, hash-verified

844
845@array_function_dispatch(_unary_op_dispatcher)
846def isalpha(a):
847 """
848 Returns true for each element if all characters in the string are
849 alphabetic and there is at least one character, false otherwise.
850
851 Calls `str.isalpha` element-wise.
852
853 For 8-bit strings, this method is locale-dependent.
854
855 Parameters
856 ----------
857 a : array_like of str or unicode
858
859 Returns
860 -------
861 out : ndarray
862 Output array of bools
863
864 See Also
865 --------
866 str.isalpha
867 """
868 return _vec_string(a, bool_, 'isalpha')
869
870
871@array_function_dispatch(_unary_op_dispatcher)

Callers 1

isalphaMethod · 0.85

Calls 1

_vec_stringFunction · 0.90

Tested by

no test coverage detected