# xarray.DataArray.str.istitle

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

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('4edc7560-1bad-4ca9-b399-0d1a9acda632','d9d8e8fe-c0ac-49d5-918a-638b53a838ca','16589791-9d16-4f7b-a090-62971c23c535','../lite/tree/../notebooks/index.html?path=f7dfcad5_e020_447e_81ce_6b82171e0171.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="16589791-9d16-4f7b-a090-62971c23c535" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('4edc7560-1bad-4ca9-b399-0d1a9acda632','16589791-9d16-4f7b-a090-62971c23c535')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('4edc7560-1bad-4ca9-b399-0d1a9acda632','16589791-9d16-4f7b-a090-62971c23c535')">Open In Tab</button></div><div id="d9d8e8fe-c0ac-49d5-918a-638b53a838ca" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
