# xarray.DataArray.str.upper

#### DataArray.str.upper()[[source]](https://github.com/pydata/xarray/blob/v2026.09.0/xarray/core/accessor_str.py#L768-L789)

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('bf6e4d44-bd73-4839-81d2-0d3d72be16f6','164d226b-ca27-4216-8811-8136dee51df5','9a1f3511-0c27-43ed-9f3a-532609714c3a','../lite/tree/../notebooks/index.html?path=599f4a39_7ce0_4af3_b30d_8bda195ce8d4.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="9a1f3511-0c27-43ed-9f3a-532609714c3a" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('bf6e4d44-bd73-4839-81d2-0d3d72be16f6','9a1f3511-0c27-43ed-9f3a-532609714c3a')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('bf6e4d44-bd73-4839-81d2-0d3d72be16f6','9a1f3511-0c27-43ed-9f3a-532609714c3a')">Open In Tab</button></div><div id="164d226b-ca27-4216-8811-8136dee51df5" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
