# xarray.DataArray.str.isdecimal

#### DataArray.str.isdecimal()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L913-L935)

Check whether all characters in each string are decimal.

* **Returns:**
  **isdecimal** ([array](https://numpy.org/doc/stable/glossary.html#term-array) of [`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – Array of boolean values with the same shape as the original array.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('d77a3a41-e0c5-4c43-bf1d-4c40db6b84b1','259b1499-69e6-4e1b-8930-ce9b19987371','fb5746a2-9860-4b1f-9f0c-144288635b30','../lite/tree/../notebooks/index.html?path=e105377d_4b0d_407a_a4d2_21636516c0a1.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["2.3", "123", "0"], dims="x")
>>> da
<xarray.DataArray (x: 3)> Size: 36B
array(['2.3', '123', '0'], dtype='<U3')
Dimensions without coordinates: x
>>> isdecimal = da.str.isdecimal()
>>> isdecimal
<xarray.DataArray (x: 3)> Size: 3B
array([False,  True,  True])
Dimensions without coordinates: x
```

<div id="fb5746a2-9860-4b1f-9f0c-144288635b30" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('d77a3a41-e0c5-4c43-bf1d-4c40db6b84b1','fb5746a2-9860-4b1f-9f0c-144288635b30')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('d77a3a41-e0c5-4c43-bf1d-4c40db6b84b1','fb5746a2-9860-4b1f-9f0c-144288635b30')">Open In Tab</button></div><div id="259b1499-69e6-4e1b-8930-ce9b19987371" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
