# xarray.DataArray.str.isnumeric

#### DataArray.str.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('b0641690-aae2-4722-8b07-bdc7a5a75e35','0a052cc1-f907-4d5e-8239-f7d4ecc08cf8','537718d3-e483-4eda-b0d0-fac5c9631596','../lite/tree/../notebooks/index.html?path=572576a0_0bfe_4471_9dad_c68ebf22a96a.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="537718d3-e483-4eda-b0d0-fac5c9631596" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('b0641690-aae2-4722-8b07-bdc7a5a75e35','537718d3-e483-4eda-b0d0-fac5c9631596')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('b0641690-aae2-4722-8b07-bdc7a5a75e35','537718d3-e483-4eda-b0d0-fac5c9631596')">Open In Tab</button></div><div id="0a052cc1-f907-4d5e-8239-f7d4ecc08cf8" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
