SciPy

numpy.chararray.isspace

chararray.isspace()[source]

Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise.

See also

char.isspace