# 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('3c9331c5-cf68-4b06-9a1d-7cbb30512a94','aa260294-bd68-4de8-a95f-7c310895d314','c407a0cb-e379-4f95-a688-7fc151e1bd8d','../lite/tree/../notebooks/index.html?path=fc77ec7f_ec8e_4640_944c_54f801591b6c.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="c407a0cb-e379-4f95-a688-7fc151e1bd8d" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('3c9331c5-cf68-4b06-9a1d-7cbb30512a94','c407a0cb-e379-4f95-a688-7fc151e1bd8d')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('3c9331c5-cf68-4b06-9a1d-7cbb30512a94','c407a0cb-e379-4f95-a688-7fc151e1bd8d')">Open In Tab</button></div><div id="aa260294-bd68-4de8-a95f-7c310895d314" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
