# xarray.DataArray.str.upper

#### DataArray.str.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('e51c7a73-ec2d-4de0-ade8-158c8a2b7cba','ee8b4ba5-76e3-42d2-82bf-2e4689ccfc2a','0214c7df-404d-4dc1-9460-739194c86e84','../lite/tree/../notebooks/index.html?path=fd37afda_7249_44dd_93cc_3a64dff55d7c.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="0214c7df-404d-4dc1-9460-739194c86e84" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('e51c7a73-ec2d-4de0-ade8-158c8a2b7cba','0214c7df-404d-4dc1-9460-739194c86e84')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('e51c7a73-ec2d-4de0-ade8-158c8a2b7cba','0214c7df-404d-4dc1-9460-739194c86e84')">Open In Tab</button></div><div id="ee8b4ba5-76e3-42d2-82bf-2e4689ccfc2a" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
