# 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('f2979dc0-bd50-4684-8b39-8f5cb6343557','8ebc8a40-8650-447f-a9b9-77d4cf8ec06c','a44444e4-9e44-4baa-af1a-82a9b648b81d','../lite/tree/../notebooks/index.html?path=d4f104a5_f355_43f1_bf63_fe81807b68a5.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="a44444e4-9e44-4baa-af1a-82a9b648b81d" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('f2979dc0-bd50-4684-8b39-8f5cb6343557','a44444e4-9e44-4baa-af1a-82a9b648b81d')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('f2979dc0-bd50-4684-8b39-8f5cb6343557','a44444e4-9e44-4baa-af1a-82a9b648b81d')">Open In Tab</button></div><div id="8ebc8a40-8650-447f-a9b9-77d4cf8ec06c" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
