# xarray.DataArray.str.isupper

#### DataArray.str.isupper()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L1085-L1108)

Check whether all characters in each string are uppercase.

* **Returns:**
  **isupper** ([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('def364fb-4e2c-4f58-81ea-ec249c90457a','63560f92-e816-45a3-b07a-0106de54f207','e721197e-ce5b-4227-8fe7-9afc21e99891','../lite/tree/../notebooks/index.html?path=b82aeb17_8182_4345_8ea1_4138f2fc0f56.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["TEMPERATURE", "humidity", "PreCIpiTAtioN"], dims="x")
>>> da
<xarray.DataArray (x: 3)> Size: 156B
array(['TEMPERATURE', 'humidity', 'PreCIpiTAtioN'], dtype='<U13')
Dimensions without coordinates: x
>>> isupper = da.str.isupper()
>>> isupper
<xarray.DataArray (x: 3)> Size: 3B
array([ True, False, False])
Dimensions without coordinates: x
```

<div id="e721197e-ce5b-4227-8fe7-9afc21e99891" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('def364fb-4e2c-4f58-81ea-ec249c90457a','e721197e-ce5b-4227-8fe7-9afc21e99891')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('def364fb-4e2c-4f58-81ea-ec249c90457a','e721197e-ce5b-4227-8fe7-9afc21e99891')">Open In Tab</button></div><div id="63560f92-e816-45a3-b07a-0106de54f207" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
