chararray.size

chararray.size Number of elements in the array. Equivalent to np.prod(a.shape), i.e., the product of the array?s dimensions. Examples >>> x = np.zeros((3, 5, 2), dtype=np.complex128) >>> x.size 30 >>> np.prod(x.shape) 30

chararray.shape

chararray.shape Tuple of array dimensions. Notes May be used to ?reshape? the array, as long as this would not require a change in the total number of elements Examples >>> x = np.array([1, 2, 3, 4]) >>> x.shape (4,) >>> y = np.zeros((2, 3, 4)) >>> y.shape (2, 3, 4) >>> y.shape = (3, 8) >>> y array([[ 0., 0., 0., 0., 0., 0., 0., 0.], [ 0., 0., 0., 0., 0., 0., 0., 0.], [ 0., 0., 0., 0., 0., 0., 0., 0.]])

chararray.setflags()

chararray.setflags(write=None, align=None, uic=None) Set array flags WRITEABLE, ALIGNED, and UPDATEIFCOPY, respectively. These Boolean-valued flags affect how numpy interprets the memory area used by a (see Notes below). The ALIGNED flag can only be set to True if the data is actually aligned according to the type. The UPDATEIFCOPY flag can never be set to True. The flag WRITEABLE can only be set to True if the array owns its own memory, or the ultimate owner of the memory exposes a writeab

chararray.setfield()

chararray.setfield(val, dtype, offset=0) Put a value into a specified place in a field defined by a data-type. Place val into a?s field defined by dtype and beginning offset bytes into the field. Parameters: val : object Value to be placed in field. dtype : dtype object Data-type of the field in which to place val. offset : int, optional The number of bytes into the field at which to place val. Returns: None See also getfield Examples >>> x = np.eye(3) >>> x.ge

chararray.searchsorted()

chararray.searchsorted(v, side='left', sorter=None) Find indices where elements of v should be inserted in a to maintain order. For full documentation, see numpy.searchsorted See also numpy.searchsorted equivalent function

chararray.rstrip()

chararray.rstrip(chars=None) [source] For each element in self, return a copy with the trailing characters removed. See also char.rstrip

chararray.rsplit()

chararray.rsplit(sep=None, maxsplit=None) [source] For each element in self, return a list of the words in the string, using sep as the delimiter string. See also char.rsplit

chararray.rjust()

chararray.rjust(width, fillchar=' ') [source] Return an array with the elements of self right-justified in a string of length width. See also char.rjust

chararray.rindex()

chararray.rindex(sub, start=0, end=None) [source] Like rfind, but raises ValueError when the substring sub is not found. See also char.rindex

chararray.rfind()

chararray.rfind(sub, start=0, end=None) [source] For each element in self, return the highest index in the string where substring sub is found, such that sub is contained within [start, end]. See also char.rfind