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

Function isalnum

numpy/core/defchararray.py:820–842  ·  view source on GitHub ↗

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

(a)

Source from the content-addressed store, hash-verified

818
819@array_function_dispatch(_unary_op_dispatcher)
820def isalnum(a):
821 """
822 Returns true for each element if all characters in the string are
823 alphanumeric and there is at least one character, false otherwise.
824
825 Calls `str.isalnum` element-wise.
826
827 For 8-bit strings, this method is locale-dependent.
828
829 Parameters
830 ----------
831 a : array_like of str or unicode
832
833 Returns
834 -------
835 out : ndarray
836 Output array of str or unicode, depending on input type
837
838 See Also
839 --------
840 str.isalnum
841 """
842 return _vec_string(a, bool_, 'isalnum')
843
844
845@array_function_dispatch(_unary_op_dispatcher)

Callers 1

isalnumMethod · 0.85

Calls 1

_vec_stringFunction · 0.90

Tested by

no test coverage detected