# 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('09764270-706c-4816-b35b-6f42d89b787b','1d58ce47-ab3b-4840-b9e1-9a5a370e8119','796d1a4b-4105-4d33-836c-9cfc317e1e84','../lite/tree/../notebooks/index.html?path=8ed00b7e_c83c_4e62_a0b1_2ee8f3d0c2a6.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="796d1a4b-4105-4d33-836c-9cfc317e1e84" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('09764270-706c-4816-b35b-6f42d89b787b','796d1a4b-4105-4d33-836c-9cfc317e1e84')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('09764270-706c-4816-b35b-6f42d89b787b','796d1a4b-4105-4d33-836c-9cfc317e1e84')">Open In Tab</button></div><div id="1d58ce47-ab3b-4840-b9e1-9a5a370e8119" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
