# xarray.DataArray.str.isspace

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

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('c597db4b-3b04-4e61-b427-3e534523bdb8','a7f690f7-3ecd-4f6b-aa69-6ff6c5e8fbd0','b4db357a-dea5-4da5-9baf-e7de2649355f','../lite/tree/../notebooks/index.html?path=0c0049f8_1c5c_4e68_8b42_473a75364417.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="b4db357a-dea5-4da5-9baf-e7de2649355f" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('c597db4b-3b04-4e61-b427-3e534523bdb8','b4db357a-dea5-4da5-9baf-e7de2649355f')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('c597db4b-3b04-4e61-b427-3e534523bdb8','b4db357a-dea5-4da5-9baf-e7de2649355f')">Open In Tab</button></div><div id="a7f690f7-3ecd-4f6b-aa69-6ff6c5e8fbd0" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
