chararray.flat

chararray.flat A 1-D iterator over the array. This is a numpy.flatiter instance, which acts similarly to, but is not a subclass of, Python?s built-in iterator object. See also flatten Return a copy of the array collapsed into one dimension. flatiter Examples >>> x = np.arange(1, 7).reshape(2, 3) >>> x array([[1, 2, 3], [4, 5, 6]]) >>> x.flat[3] 4 >>> x.T array([[1, 4], [2, 5], [3, 6]]) >>> x.T.flat[3] 5 >>> type

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.encode()

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

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.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.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.data

chararray.data Python buffer object pointing to the start of the array?s data.