numpy.core.defchararray.isdigit()

numpy.core.defchararray.isdigit(a) [source] Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. Calls str.isdigit 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.isdigit

numpy.core.defchararray.isdecimal()

numpy.core.defchararray.isdecimal(a) [source] For each element, return True if there are only decimal characters in the element. Calls unicode.isdecimal element-wise. Decimal characters include digit characters, and all characters that that can be used to form decimal-radix numbers, e.g. U+0660, ARABIC-INDIC DIGIT ZERO. Parameters: a : array_like, unicode Input array. Returns: out : ndarray, bool Array of booleans identical in shape to a. See also unicode.isdecimal

numpy.core.defchararray.isalpha()

numpy.core.defchararray.isalpha(a) [source] Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise. Calls str.isalpha 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.isalpha

numpy.core.defchararray.index()

numpy.core.defchararray.index(a, sub, start=0, end=None) [source] Like find, but raises ValueError when the substring is not found. Calls str.index element-wise. Parameters: a : array_like of str or unicode sub : str or unicode start, end : int, optional Returns: out : ndarray Output array of ints. Returns -1 if sub is not found. See also find, str.find

numpy.core.defchararray.greater_equal()

numpy.core.defchararray.greater_equal(x1, x2) [source] Return (x1 >= x2) element-wise. Unlike numpy.greater_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_equ

numpy.core.defchararray.greater()

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

numpy.core.defchararray.find()

numpy.core.defchararray.find(a, sub, start=0, end=None) [source] For each element, return the lowest index in the string where substring sub is found. Calls str.find element-wise. For each element, return the lowest index in the string where substring sub is found, such that sub is contained in the range [start, end]. Parameters: a : array_like of str or unicode sub : str or unicode start, end : int, optional Optional arguments start and end are interpreted as in slice notation. Returns

numpy.core.defchararray.equal()

numpy.core.defchararray.equal(x1, x2) [source] Return (x1 == x2) element-wise. Unlike numpy.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 not_equal, greater_equal, less_eq

numpy.core.defchararray.encode()

numpy.core.defchararray.encode(a, encoding=None, errors=None) [source] Calls str.encode element-wise. The set of available codecs comes from the Python standard library, and may be extended at runtime. For more information, see the codecs module. Parameters: a : array_like of str or unicode encoding : str, optional The name of an encoding errors : str, optional Specifies how to handle encoding errors Returns: out : ndarray See also str.encode Notes The type of the result will depe

numpy.core.defchararray.decode()

numpy.core.defchararray.decode(a, encoding=None, errors=None) [source] Calls str.decode element-wise. The set of available codecs comes from the Python standard library, and may be extended at runtime. For more information, see the codecs module. Parameters: a : array_like of str or unicode encoding : str, optional The name of an encoding errors : str, optional Specifies how to handle encoding errors Returns: out : ndarray See also str.decode Notes The type of the result will depe