# xarray.core.accessor_str.StringAccessor.isnumeric

#### StringAccessor.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('c7f4c1f4-0db5-4bc1-a9d7-5ebb38c23dd6','68a27649-fdce-4e36-a131-e8997e3c8ee8','bb2dc9c3-cd72-4182-81c5-8332946b320a','../lite/tree/../notebooks/index.html?path=9ccfb480_09ab_44f5_8654_10f61e921c9e.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="bb2dc9c3-cd72-4182-81c5-8332946b320a" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('c7f4c1f4-0db5-4bc1-a9d7-5ebb38c23dd6','bb2dc9c3-cd72-4182-81c5-8332946b320a')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('c7f4c1f4-0db5-4bc1-a9d7-5ebb38c23dd6','bb2dc9c3-cd72-4182-81c5-8332946b320a')">Open In Tab</button></div><div id="68a27649-fdce-4e36-a131-e8997e3c8ee8" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
