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

Function isspace

numpy/core/defchararray.py:934–957  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

932
933@array_function_dispatch(_unary_op_dispatcher)
934def 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)

Callers 7

isspaceMethod · 0.85
parse_iso_8601_datetimeFunction · 0.85
swab_separatorFunction · 0.85
fromstr_skip_separatorFunction · 0.85
fromfile_skip_separatorFunction · 0.85
pyrational_newFunction · 0.85

Calls 1

_vec_stringFunction · 0.90

Tested by 1

pyrational_newFunction · 0.68