# xarray.DataArray.str.istitle

#### DataArray.str.istitle()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L1034-L1064)

Check whether all characters in each string are titlecase.

* **Returns:**
  **istitle** ([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('beac5d0d-f252-41a4-82dd-09bc34a8d6e7','0f30a419-ce40-48a3-9321-ec36af8a0ec6','8fa6b28b-a09b-4eb8-aea8-bff2f8611b79','../lite/tree/../notebooks/index.html?path=86963ab8_f432_4926_9f2e_06ce77957c4e.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(
...     [
...         "The Evolution Of Species",
...         "The Theory of relativity",
...         "the quantum mechanics of atoms",
...     ],
...     dims="title",
... )
>>> da
<xarray.DataArray (title: 3)> Size: 360B
array(['The Evolution Of Species', 'The Theory of relativity',
       'the quantum mechanics of atoms'], dtype='<U30')
Dimensions without coordinates: title
>>> istitle = da.str.istitle()
>>> istitle
<xarray.DataArray (title: 3)> Size: 3B
array([ True, False, False])
Dimensions without coordinates: title
```

<div id="8fa6b28b-a09b-4eb8-aea8-bff2f8611b79" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('beac5d0d-f252-41a4-82dd-09bc34a8d6e7','8fa6b28b-a09b-4eb8-aea8-bff2f8611b79')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('beac5d0d-f252-41a4-82dd-09bc34a8d6e7','8fa6b28b-a09b-4eb8-aea8-bff2f8611b79')">Open In Tab</button></div><div id="0f30a419-ce40-48a3-9321-ec36af8a0ec6" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
