numpy.core.defchararray.ljust()

numpy.core.defchararray.ljust(a, width, fillchar=' ') [source] Return an array with the elements of a left-justified in a string of length width. Calls str.ljust element-wise. Parameters: a : array_like of str or unicode width : int The length of the resulting strings fillchar : str or unicode, optional The character to use for padding Returns: out : ndarray Output array of str or unicode, depending on input type See also str.ljust

numpy.core.defchararray.lower()

numpy.core.defchararray.lower(a) [source] Return an array with the elements converted to lowercase. Call str.lower element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a : array_like, {str, unicode} Input array. Returns: out : ndarray, {str, unicode} Output array of str or unicode, depending on input type See also str.lower Examples >>> c = np.array(['A1B C', '1BCA', 'BCA1']); c array(['A1B C', '1BCA', 'BCA1'], dtype='|S5') >>> np.c

numpy.core.defchararray.less_equal()

numpy.core.defchararray.less_equal(x1, x2) [source] Return (x1 <= x2) element-wise. Unlike numpy.less_equal, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters: x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns: out : ndarray or bool Output array of bools, or a single bool if x1 and x2 are scalars. See also equal, not_equal, gr

numpy.core.defchararray.less()

numpy.core.defchararray.less(x1, x2) [source] Return (x1 < x2) element-wise. Unlike numpy.greater, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters: x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns: out : ndarray or bool Output array of bools, or a single bool if x1 and x2 are scalars. See also equal, not_equal, greater_equa

numpy.core.defchararray.join()

numpy.core.defchararray.join(sep, seq) [source] Return a string which is the concatenation of the strings in the sequence seq. Calls str.join element-wise. Parameters: sep : array_like of str or unicode seq : array_like of str or unicode Returns: out : ndarray Output array of str or unicode, depending on input types See also str.join

numpy.core.defchararray.isupper()

numpy.core.defchararray.isupper(a) [source] Returns true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise. Call str.isupper element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a : array_like of str or unicode Returns: out : ndarray Output array of bools See also str.isupper

numpy.core.defchararray.istitle()

numpy.core.defchararray.istitle(a) [source] Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. Call str.istitle element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a : array_like of str or unicode Returns: out : ndarray Output array of bools See also str.istitle

numpy.core.defchararray.islower()

numpy.core.defchararray.islower(a) [source] Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise. Calls str.islower element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a : array_like of str or unicode Returns: out : ndarray Output array of bools See also str.islower

numpy.core.defchararray.isnumeric()

numpy.core.defchararray.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

numpy.core.defchararray.isspace()

numpy.core.defchararray.isspace(a) [source] Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise. Calls str.isspace element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a : array_like of str or unicode Returns: out : ndarray Output array of bools See also str.isspace