# 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('c39a677a-db4b-4f61-aff9-e54ad9e17b87','fb1c0bf3-9212-40a9-a205-49af0c97695f','5d17ff2f-8620-4042-b1e7-b4e433d9b325','../lite/tree/../notebooks/index.html?path=b8cbebcd_437d_4db3_bb9a_8fb469d4d825.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="5d17ff2f-8620-4042-b1e7-b4e433d9b325" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('c39a677a-db4b-4f61-aff9-e54ad9e17b87','5d17ff2f-8620-4042-b1e7-b4e433d9b325')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('c39a677a-db4b-4f61-aff9-e54ad9e17b87','5d17ff2f-8620-4042-b1e7-b4e433d9b325')">Open In Tab</button></div><div id="fb1c0bf3-9212-40a9-a205-49af0c97695f" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
