# xarray.core.accessor_str.StringAccessor.upper

#### StringAccessor.upper()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L793-L813)

Convert strings in the array to uppercase.

* **Returns:**
  **uppered** (`same type as values`)

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('e8a4699c-3598-429d-a9b0-ae98b6114e2f','48a54896-13c2-46a3-9404-efdd5bcec246','91f67e7d-7e27-4614-8aad-13fe028f651e','../lite/tree/../notebooks/index.html?path=622ef46f_c957_4ac8_a1bf_5d3df38899ab.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["temperature", "HuMiDiTy"], dims="x")
>>> da
<xarray.DataArray (x: 2)> Size: 88B
array(['temperature', 'HuMiDiTy'], dtype='<U11')
Dimensions without coordinates: x
>>> uppered = da.str.upper()
>>> uppered
<xarray.DataArray (x: 2)> Size: 88B
array(['TEMPERATURE', 'HUMIDITY'], dtype='<U11')
Dimensions without coordinates: x
```

<div id="91f67e7d-7e27-4614-8aad-13fe028f651e" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('e8a4699c-3598-429d-a9b0-ae98b6114e2f','91f67e7d-7e27-4614-8aad-13fe028f651e')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('e8a4699c-3598-429d-a9b0-ae98b6114e2f','91f67e7d-7e27-4614-8aad-13fe028f651e')">Open In Tab</button></div><div id="48a54896-13c2-46a3-9404-efdd5bcec246" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
