chararray.flags

chararray.flags Information about the memory layout of the array. Notes The flags object can be accessed dictionary-like (as in a.flags['WRITEABLE']), or by using lowercased attribute names (as in a.flags.writeable). Short flag names are only supported in dictionary access. Only the UPDATEIFCOPY, WRITEABLE, and ALIGNED flags can be changed by the user, via direct assignment to the attribute or dictionary entry, or by calling ndarray.setflags. The array flags cannot be set arbitrarily: UPDAT

chararray.find()

chararray.find(sub, start=0, end=None) [source] For each element, return the lowest index in the string where substring sub is found. See also char.find

chararray.fill()

chararray.fill(value) Fill the array with a scalar value. Parameters: value : scalar All elements of a will be assigned this value. Examples >>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([ 1., 1.])

chararray.expandtabs()

chararray.expandtabs(tabsize=8) [source] Return a copy of each string element where all tab characters are replaced by one or more spaces. See also char.expandtabs

chararray.endswith()

chararray.endswith(suffix, start=0, end=None) [source] Returns a boolean array which is True where the string element in self ends with suffix, otherwise False. See also char.endswith

chararray.encode()

chararray.encode(encoding=None, errors=None) [source] Calls str.encode element-wise. See also char.encode

chararray.dumps()

chararray.dumps() Returns the pickle of the array as a string. pickle.loads or numpy.loads will convert the string back to an array. Parameters: None

chararray.dump()

chararray.dump(file) Dump a pickle of the array to the specified file. The array can be read back with pickle.load or numpy.load. Parameters: file : str A string naming the dump file.

chararray.dtype

chararray.dtype Data-type of the array?s elements. Parameters: None Returns: d : numpy dtype object See also numpy.dtype Examples >>> x array([[0, 1], [2, 3]]) >>> x.dtype dtype('int32') >>> type(x.dtype) <type 'numpy.dtype'>

chararray.decode()

chararray.decode(encoding=None, errors=None) [source] Calls str.decode element-wise. See also char.decode