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)
| 844 | |
| 845 | @array_function_dispatch(_unary_op_dispatcher) |
| 846 | def 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) |