# xarray.DataArray.str.isnumeric

#### DataArray.str.isnumeric()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L986-L1008)

Check whether all characters in each string are numeric.

* **Returns:**
  **isnumeric** ([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('a2e79ac6-0c66-42bf-8fd7-db9905fe613a','08dd22da-69fb-4dd3-9ed3-f64d5e3cde0e','b7dbc84c-c0a0-4f65-a2e5-62c525673adf','../lite/tree/../notebooks/index.html?path=6086144c_f611_4200_a5da_a2d30256a22e.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["123", "2.3", "H2O", "NaCl-", "Mn"], dims="x")
>>> da
<xarray.DataArray (x: 5)> Size: 100B
array(['123', '2.3', 'H2O', 'NaCl-', 'Mn'], dtype='<U5')
Dimensions without coordinates: x
>>> isnumeric = da.str.isnumeric()
>>> isnumeric
<xarray.DataArray (x: 5)> Size: 5B
array([ True, False, False, False, False])
Dimensions without coordinates: x
```

<div id="b7dbc84c-c0a0-4f65-a2e5-62c525673adf" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('a2e79ac6-0c66-42bf-8fd7-db9905fe613a','b7dbc84c-c0a0-4f65-a2e5-62c525673adf')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('a2e79ac6-0c66-42bf-8fd7-db9905fe613a','b7dbc84c-c0a0-4f65-a2e5-62c525673adf')">Open In Tab</button></div><div id="08dd22da-69fb-4dd3-9ed3-f64d5e3cde0e" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
