# xarray.core.accessor_str.StringAccessor.isdecimal

#### StringAccessor.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('4ade4e4a-d1bf-4f21-a2a4-9d29a37a4faa','a60caee3-3cd0-4520-a4cd-f21e6ce7cf69','83080174-737d-4836-805f-ed041f273589','../lite/tree/../notebooks/index.html?path=714e44e5_1d4e_4b57_97d3_e38522c6eaaa.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="83080174-737d-4836-805f-ed041f273589" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('4ade4e4a-d1bf-4f21-a2a4-9d29a37a4faa','83080174-737d-4836-805f-ed041f273589')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('4ade4e4a-d1bf-4f21-a2a4-9d29a37a4faa','83080174-737d-4836-805f-ed041f273589')">Open In Tab</button></div><div id="a60caee3-3cd0-4520-a4cd-f21e6ce7cf69" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
