# xarray.core.accessor_str.StringAccessor.upper

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

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('a0331aaa-33b6-4f91-b1fa-cc854555f63c','3840b05b-12bd-4a88-a353-aaaeab07f800','0cef2e09-e066-4f41-91b2-aae2bb472c74','../lite/tree/../notebooks/index.html?path=943be483_f6be_4faa_a3fa_dfdc14aefb61.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="0cef2e09-e066-4f41-91b2-aae2bb472c74" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('a0331aaa-33b6-4f91-b1fa-cc854555f63c','0cef2e09-e066-4f41-91b2-aae2bb472c74')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('a0331aaa-33b6-4f91-b1fa-cc854555f63c','0cef2e09-e066-4f41-91b2-aae2bb472c74')">Open In Tab</button></div><div id="3840b05b-12bd-4a88-a353-aaaeab07f800" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
