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)
| 818 | |
| 819 | @array_function_dispatch(_unary_op_dispatcher) |
| 820 | def 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) |