# xarray.DataArray.str.isspace

#### DataArray.str.isspace()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L1010-L1032)

Check whether all characters in each string are spaces.

* **Returns:**
  **isspace** ([array](https://numpy.org/doc/stable/glossary.html#term-array) of [`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – Array of boolean values with the same shape as the original array.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('ac63a264-6fc5-40ed-8ef4-c15ed5b33cfa','b5ae610b-4f2b-4a11-8316-362f5131b772','e1809784-3003-47ba-8614-c6c6c9d3159f','../lite/tree/../notebooks/index.html?path=66789e11_8315_43c4_9396_70242b41e2e5.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["", " ", "\t", "\n"], dims="x")
>>> da
<xarray.DataArray (x: 4)> Size: 16B
array(['', ' ', '\t', '\n'], dtype='<U1')
Dimensions without coordinates: x
>>> isspace = da.str.isspace()
>>> isspace
<xarray.DataArray (x: 4)> Size: 4B
array([False,  True,  True,  True])
Dimensions without coordinates: x
```

<div id="e1809784-3003-47ba-8614-c6c6c9d3159f" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('ac63a264-6fc5-40ed-8ef4-c15ed5b33cfa','e1809784-3003-47ba-8614-c6c6c9d3159f')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('ac63a264-6fc5-40ed-8ef4-c15ed5b33cfa','e1809784-3003-47ba-8614-c6c6c9d3159f')">Open In Tab</button></div><div id="b5ae610b-4f2b-4a11-8316-362f5131b772" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
