# xarray.DataArray.str.isdecimal

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

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('242b28e8-28d2-40c9-8bfc-7a304acecec8','4a711f4c-256b-48d0-9dae-2afdbc0c5a75','adbf387b-9d61-4ba9-af7c-30feac40ac4a','../lite/tree/../notebooks/index.html?path=ed8cb6aa_b1c4_4706_9adc_3cba7ca21378.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="adbf387b-9d61-4ba9-af7c-30feac40ac4a" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('242b28e8-28d2-40c9-8bfc-7a304acecec8','adbf387b-9d61-4ba9-af7c-30feac40ac4a')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('242b28e8-28d2-40c9-8bfc-7a304acecec8','adbf387b-9d61-4ba9-af7c-30feac40ac4a')">Open In Tab</button></div><div id="4a711f4c-256b-48d0-9dae-2afdbc0c5a75" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
