# xarray.core.accessor_str.StringAccessor.isnumeric

#### StringAccessor.isnumeric()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L1002-L1025)

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('2b477e6d-adec-4e31-b46b-3488222a8d96','461fdc67-9d64-4978-aafb-dc9bb3031714','2e31ee4a-ef76-408a-88d5-db8f5d1ea72c','../lite/tree/../notebooks/index.html?path=cb651f9b_bbad_43d9_b75a_538883a5638c.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="2e31ee4a-ef76-408a-88d5-db8f5d1ea72c" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('2b477e6d-adec-4e31-b46b-3488222a8d96','2e31ee4a-ef76-408a-88d5-db8f5d1ea72c')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('2b477e6d-adec-4e31-b46b-3488222a8d96','2e31ee4a-ef76-408a-88d5-db8f5d1ea72c')">Open In Tab</button></div><div id="461fdc67-9d64-4978-aafb-dc9bb3031714" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
