# xarray.DataArray.str.isalpha

#### DataArray.str.isalpha()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L889-L911)

Check whether all characters in each string are alphabetic.

* **Returns:**
  **isalpha** ([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('29f81b1f-964f-4890-8ad6-ef4cf82f91b9','77b2e5ff-95a5-4b89-bd20-ce32a8251edc','3798257c-8ffb-42b6-938f-aa8fb674e75c','../lite/tree/../notebooks/index.html?path=cbd5e0b7_1676_4ac4_8f13_44e1bdae761d.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["Mn", "H2O", "NaCl-"], dims="x")
>>> da
<xarray.DataArray (x: 3)> Size: 60B
array(['Mn', 'H2O', 'NaCl-'], dtype='<U5')
Dimensions without coordinates: x
>>> isalpha = da.str.isalpha()
>>> isalpha
<xarray.DataArray (x: 3)> Size: 3B
array([ True, False, False])
Dimensions without coordinates: x
```

<div id="3798257c-8ffb-42b6-938f-aa8fb674e75c" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('29f81b1f-964f-4890-8ad6-ef4cf82f91b9','3798257c-8ffb-42b6-938f-aa8fb674e75c')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('29f81b1f-964f-4890-8ad6-ef4cf82f91b9','3798257c-8ffb-42b6-938f-aa8fb674e75c')">Open In Tab</button></div><div id="77b2e5ff-95a5-4b89-bd20-ce32a8251edc" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
