chararray.data

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

chararray.ctypes

chararray.ctypes An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctypes objects that can be used as arguments to a shared library. Parameters: None Returns: c : Python object Possessing attributes data, shape, strides, etc.

chararray.count()

chararray.count(sub, start=0, end=None) [source] Returns an array with the number of non-overlapping occurrences of substring sub in the range [start, end]. See also char.count

chararray.copy()

chararray.copy(order='C') Return a copy of the array. Parameters: order : {?C?, ?F?, ?A?, ?K?}, optional Controls the memory layout of the copy. ?C? means C-order, ?F? means F-order, ?A? means ?F? if a is Fortran contiguous, ?C? otherwise. ?K? means match the layout of a as closely as possible. (Note that this function and :func:numpy.copy are very similar, but have different default values for their order= arguments.) See also numpy.copy, numpy.copyto Examples >>> x = np.arr

chararray.base

chararray.base Base object if memory is from some other object. Examples The base of an array that owns its memory is None: >>> x = np.array([1,2,3,4]) >>> x.base is None True Slicing creates a view, whose memory is shared with x: >>> y = x[2:] >>> y.base is x True

chararray.astype()

chararray.astype(dtype, order='K', casting='unsafe', subok=True, copy=True) Copy of the array, cast to a specified type. Parameters: dtype : str or dtype Typecode or data-type to which the array is cast. order : {?C?, ?F?, ?A?, ?K?}, optional Controls the memory layout order of the result. ?C? means C order, ?F? means Fortran order, ?A? means ?F? order if all the arrays are Fortran contiguous, ?C? order otherwise, and ?K? means as close to the order the array elements appear in memory a

C API Deprecations

Background The API exposed by NumPy for third-party extensions has grown over years of releases, and has allowed programmers to directly access NumPy functionality from C. This API can be best described as ?organic?. It has emerged from multiple competing desires and from multiple points of view over the years, strongly influenced by the desire to make it easy for users to move to NumPy from Numeric and Numarray. The core API originated with Numeric in 1995 and there are patterns such as the

busdaycalendar.weekmask

busdaycalendar.weekmask A copy of the seven-element boolean mask indicating valid days.

busdaycalendar.holidays

busdaycalendar.holidays A copy of the holiday array indicating additional invalid days.

broadcast.size

broadcast.size Total size of broadcasted result. Examples >>> x = np.array([1, 2, 3]) >>> y = np.array([[4], [5], [6]]) >>> b = np.broadcast(x, y) >>> b.size 9