numpy string operations | istitle() function Last Updated : 14 Jan, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 # Python Program explaining # numpy.char.istitle() function import numpy as geek in_arr = geek.array(['P4Q R', '4Q Rp', 'Q rP4', 'Rpq']) print ("input array : ", in_arr) out_arr = geek.char.istitle(in_arr) print ("output array :", out_arr) Output: input array : ['P4Q R' '4Q Rp' 'Q rP4' 'Rpq'] output array : [ True True False True] Code #2: Python3 # Python Program explaining # numpy.char.istitle() function import numpy as geek in_arr = geek.array(['GEEKS', 'for', 'Geeks']) print ("input array : ", in_arr) out_arr = geek.char.istitle(in_arr) print ("output array :", out_arr ) Output: input array : ['GEEKS' 'for' 'Geeks'] output array : [False False True] 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 | 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 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 | 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 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 | 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 Like