# 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('5fd40e1e-cc2f-4cf7-aaca-19d087e58b01','fdfe720b-3752-4e8f-8652-4e6fd51d9c0c','4f243f89-d5c0-4b49-9e9f-c63f6b452cfb','../lite/tree/../notebooks/index.html?path=98d744fa_996e_492a_92f8_5758c72fd87a.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="4f243f89-d5c0-4b49-9e9f-c63f6b452cfb" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('5fd40e1e-cc2f-4cf7-aaca-19d087e58b01','4f243f89-d5c0-4b49-9e9f-c63f6b452cfb')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('5fd40e1e-cc2f-4cf7-aaca-19d087e58b01','4f243f89-d5c0-4b49-9e9f-c63f6b452cfb')">Open In Tab</button></div><div id="fdfe720b-3752-4e8f-8652-4e6fd51d9c0c" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
