# xarray.core.accessor_str.StringAccessor.isalpha

#### StringAccessor.isalpha()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L901-L924)

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('8951cb2d-f5be-4355-b409-d0b3186ed28d','4f05a727-9c5e-4ce6-a52e-f4fc452ac52b','7cd3201a-c55b-4f2e-baa8-fb7681263f5e','../lite/tree/../notebooks/index.html?path=354f8171_8f31_4ade_82a8_d7eba40ffe46.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="7cd3201a-c55b-4f2e-baa8-fb7681263f5e" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('8951cb2d-f5be-4355-b409-d0b3186ed28d','7cd3201a-c55b-4f2e-baa8-fb7681263f5e')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('8951cb2d-f5be-4355-b409-d0b3186ed28d','7cd3201a-c55b-4f2e-baa8-fb7681263f5e')">Open In Tab</button></div><div id="4f05a727-9c5e-4ce6-a52e-f4fc452ac52b" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
