# xarray.DataArray.str.upper

#### DataArray.str.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('112ab92e-5268-4423-b842-06056758545a','6ac6766b-0289-4098-a345-238756963b7c','c8ca3cab-3bf0-4202-9fae-3087a68594b7','../lite/tree/../notebooks/index.html?path=07f57137_484c_4bd1_afb0_add956bf2313.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="c8ca3cab-3bf0-4202-9fae-3087a68594b7" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('112ab92e-5268-4423-b842-06056758545a','c8ca3cab-3bf0-4202-9fae-3087a68594b7')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('112ab92e-5268-4423-b842-06056758545a','c8ca3cab-3bf0-4202-9fae-3087a68594b7')">Open In Tab</button></div><div id="6ac6766b-0289-4098-a345-238756963b7c" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
