# xarray.core.accessor_str.StringAccessor.isupper

#### StringAccessor.isupper()[[source]](https://github.com/pydata/xarray/blob/v2026.09.0/xarray/core/accessor_str.py#L1055-L1077)

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('910d4d2b-8f34-4de7-ab35-40825adfeb9c','f90c915f-fe4c-47c0-ba3b-c94f1601550a','e43db1e3-8864-4e37-9569-9336fbe4f620','../lite/tree/../notebooks/index.html?path=68d26b19_eb03_4616_9492_32b6f326f8aa.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="e43db1e3-8864-4e37-9569-9336fbe4f620" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('910d4d2b-8f34-4de7-ab35-40825adfeb9c','e43db1e3-8864-4e37-9569-9336fbe4f620')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('910d4d2b-8f34-4de7-ab35-40825adfeb9c','e43db1e3-8864-4e37-9569-9336fbe4f620')">Open In Tab</button></div><div id="f90c915f-fe4c-47c0-ba3b-c94f1601550a" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
