numpy string operations | isnumeric() function Last Updated : 14 Jan, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report numpy.core.defchararray.isnumeric(arr) function returns true for each element if there are only numeric characters and there is at least one character.It returns false otherwise. Parameters: arr : array_like of str or unicode. Returns : [ndarray] Output array of bools. Code #1 : Python3 # Python program explaining # numpy.char.isnumeric() method import numpy as geek # input array contains only numeric character in_arr = geek.array([ '1000', '2000'] ) print ("Input array : ", in_arr) out_arr = geek.char.isnumeric(in_arr) print ("Output array: ", out_arr) Output: Input array : ['1000' '2000'] Output array: [ True True] Code #2 : Python3 # Python program explaining # numpy.char.isnumeric() method import numpy as geek # input array in_arr = geek.array([ 'python3.5', 'a1000', '1234 ab'] ) print ("Input array : ", in_arr) out_arr = geek.char.isnumeric(in_arr) print ("Output array: ", out_arr) Output: Input array : ['python3.5' 'a1000' '1234 ab'] Output array: [False False False] Comment More infoAdvertise with us Next Article numpy string operations | isdecimal() function J jana_sayantan Follow Improve Article Tags : Python Python-numpy Python numpy-String Operation Practice Tags : python Similar Reads numpy string operations | isdigit() function numpy.core.defchararray.isdigit(arr) function returns True for each element if all characters in the string are digits and there is at least one character; returns false otherwise. Parameters: arr : array_like of str or unicode. Returns : [ndarray] Output array of bools. Code #1 : Python3 # Python p 1 min read numpy string operations | isdecimal() function numpy.core.defchararray.isdecimal(arr) function returns True for each element if there are only decimal characters in the element.It returns false otherwise. Parameters: arr : array_like of str or unicode. Returns : [ndarray] Output array of bools. Code #1 : Python3 # Python program explaining # num 1 min read numpy string operations | isalpha() function numpy.core.defchararray.isalpha(arr) function returns True for each element if all characters in the string are alphabetic and there is at least one character; returns false otherwise. Parameters: arr : array_like of str or unicode. Returns : [ndarray] Output array of bools. Code #1 : Python3 # Pyth 1 min read Python String isnumeric() Method The isnumeric() method is a built-in method in Python that belongs to the string class. It is used to determine whether the string consists of numeric characters or not. It returns a Boolean value. If all characters in the string are numeric and it is not empty, it returns âTrueâ If all characters i 3 min read numpy.isneginf() in Python The numpy.isneginf() function tests element-wise whether it is negative infinity or not, and returns the result as a boolean array. Syntax :  numpy.isneginf(array, y = None) Parameters : array : [array_like]Input array or object whose elements, we need to test for infinity. y : [array_like]A boole 2 min read Convert Strings to Numbers and Numbers to Strings in Python Converting strings to numbers and numbers to strings is a common task in Python. In this article, weâll explore simple ways to convert between strings and numbers .Using int() and str()int() and str() functions in Python are commonly used for converting data types. The int() function changes a strin 3 min read Like