# xarray.core.accessor_str.StringAccessor.isalpha

#### StringAccessor.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('81a94e1f-cb27-4574-b4cb-73ac62690c30','54eda38d-9234-46ed-8102-8697c2ceb264','4ac089d8-0bfe-41e5-ab75-f97b81adb5c3','../lite/tree/../notebooks/index.html?path=09904c05_c4bc_4e3d_bb1c_273b8d8881e2.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="4ac089d8-0bfe-41e5-ab75-f97b81adb5c3" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('81a94e1f-cb27-4574-b4cb-73ac62690c30','4ac089d8-0bfe-41e5-ab75-f97b81adb5c3')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('81a94e1f-cb27-4574-b4cb-73ac62690c30','4ac089d8-0bfe-41e5-ab75-f97b81adb5c3')">Open In Tab</button></div><div id="54eda38d-9234-46ed-8102-8697c2ceb264" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
