numpy string operations | isalpha() function Last Updated : 14 Jan, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 # Python program explaining # numpy.char.isalpha() method import numpy as geek # input array in_arr = geek.array([ 'abcd', 'ac1bd', 'abdc', 'dcba', 'ab cd'] ) print ("Input array : ", in_arr) out_arr = geek.char.isalpha(in_arr) print ("Output array: ", out_arr) Output: Input array : ['abcd' 'ac1bd' 'abdc' 'dcba' 'ab cd'] Output array: [ True False True True False] Code #2 : Python3 # Python program explaining # numpy.char.isalpha() method import numpy as geek # input array in_arr = geek.array([ 'geeks', 'for', 'geeks', 'wow !'] ) print ("Input array : ", in_arr) out_arr = geek.char.isalpha(in_arr) print ("Output array: ", out_arr) Output: Input array : ['geeks' 'for' 'geeks' 'wow!'] Output array: [ True True True False] Comment More infoAdvertise with us Next Article numpy string operations | istitle() function J jana_sayantan Follow Improve Article Tags : Python Python-numpy Python numpy-String Operation Practice Tags : python Similar Reads numpy string operations | isspace() function numpy.core.defchararray.isspace(arr) function returns true for each element if there are only whitespace characters in the string and there is at least one character.It returns false otherwise. Syntax: numpy.core.isspace(arr) Parameters: arr : array_like of str or unicode. Returns : [ndarray] Output 2 min read Numpy - String Functions & Operations NumPy String functions belong to the numpy.char module and are designed to perform element-wise operations on arrays. These functions can help to handle and manipulate string data efficiently.Table of ContentString OperationsString Information String Comparison In this article, weâll explore the var 5 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 | istitle() function numpy.core.defchararray.istitle(arr) function returns True for each element in the array if the element is a titlecased string 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 # 1 min read numpy string operations | isupper() function numpy.core.defchararray.isupper(arr) function returns True for each element if all cased characters in the string are uppercase 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 1 min read 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 Like