Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise. Calls `str.isspace` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of
(a)
| 932 | |
| 933 | @array_function_dispatch(_unary_op_dispatcher) |
| 934 | def isspace(a): |
| 935 | """ |
| 936 | Returns true for each element if there are only whitespace |
| 937 | characters in the string and there is at least one character, |
| 938 | false otherwise. |
| 939 | |
| 940 | Calls `str.isspace` element-wise. |
| 941 | |
| 942 | For 8-bit strings, this method is locale-dependent. |
| 943 | |
| 944 | Parameters |
| 945 | ---------- |
| 946 | a : array_like of str or unicode |
| 947 | |
| 948 | Returns |
| 949 | ------- |
| 950 | out : ndarray |
| 951 | Output array of bools |
| 952 | |
| 953 | See Also |
| 954 | -------- |
| 955 | str.isspace |
| 956 | """ |
| 957 | return _vec_string(a, bool_, 'isspace') |
| 958 | |
| 959 | |
| 960 | @array_function_dispatch(_unary_op_dispatcher) |