# 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('24fbab0e-8e60-4832-901c-5a22dba8a846','58ef30cc-8249-42eb-ad25-fe4600d8aae8','f780d96b-918f-4477-8130-a971c3c7e505','../lite/tree/../notebooks/index.html?path=aaaaa076_f0bb_4239_bc57_a360c23a69d4.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="f780d96b-918f-4477-8130-a971c3c7e505" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('24fbab0e-8e60-4832-901c-5a22dba8a846','f780d96b-918f-4477-8130-a971c3c7e505')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('24fbab0e-8e60-4832-901c-5a22dba8a846','f780d96b-918f-4477-8130-a971c3c7e505')">Open In Tab</button></div><div id="58ef30cc-8249-42eb-ad25-fe4600d8aae8" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
