numpy / 1.22.0 / reference / generated / numpy.char.isnumeric.html /

numpy.char.isnumeric

char. isnumeric ( a ) [source]

For each element, return True if there are only numeric characters in the element.

Calls unicode.isnumeric element-wise.

Numeric characters include digit characters, and all characters that have the Unicode numeric value property, e.g. U+2155, VULGAR FRACTION ONE FIFTH.

Parameters
a array_like, unicode

Input array.

Returns
out ndarray, bool

Array of booleans of same shape as a.

See also

unicode.isnumeric

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.char.isnumeric.html