# xarray.DataArray.str.upper

#### DataArray.str.upper()[[source]](https://github.com/pydata/xarray/blob/main/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('ff68aab7-1930-44e0-813b-34e80a42cdda','92abd8b4-4c6b-4d4a-8980-c045b3192580','336bb234-d9aa-4b89-b8ac-714f7c78f67b','../lite/tree/../notebooks/index.html?path=cdd19bf7_b6e7_4ed4_bf8e_878d67dcbe1f.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="336bb234-d9aa-4b89-b8ac-714f7c78f67b" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('ff68aab7-1930-44e0-813b-34e80a42cdda','336bb234-d9aa-4b89-b8ac-714f7c78f67b')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('ff68aab7-1930-44e0-813b-34e80a42cdda','336bb234-d9aa-4b89-b8ac-714f7c78f67b')">Open In Tab</button></div><div id="92abd8b4-4c6b-4d4a-8980-c045b3192580" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
