MaskedArray.dtype

MaskedArray.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'>

MaskedArray.dumps()

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

MaskedArray.dump()

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

MaskedArray.diagonal()

MaskedArray.diagonal(offset=0, axis1=0, axis2=1) [source] Return specified diagonals. In NumPy 1.9 the returned array is a read-only view instead of a copy as in previous NumPy versions. In a future version the read-only restriction will be removed. Refer to numpy.diagonal for full documentation. See also numpy.diagonal equivalent function

MaskedArray.data

MaskedArray.data Return the current data, as a view of the original underlying data.

MaskedArray.cumsum()

MaskedArray.cumsum(axis=None, dtype=None, out=None) [source] Return the cumulative sum of the elements along the given axis. The cumulative sum is calculated over the flattened array by default, otherwise over the specified axis. Masked values are set to 0 internally during the computation. However, their position is saved, and the result will be masked at the same locations. Parameters: axis : {None, -1, int}, optional Axis along which the sum is computed. The default (axis = None) is to

MaskedArray.ctypes

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

MaskedArray.cumprod()

MaskedArray.cumprod(axis=None, dtype=None, out=None) [source] Return the cumulative product of the elements along the given axis. The cumulative product is taken over the flattened array by default, otherwise over the specified axis. Masked values are set to 1 internally during the computation. However, their position is saved, and the result will be masked at the same locations. Parameters: axis : {None, -1, int}, optional Axis along which the product is computed. The default (axis = Non

MaskedArray.count()

MaskedArray.count(axis=None) [source] Count the non-masked elements of the array along the given axis. Parameters: axis : int, optional Axis along which to count the non-masked elements. If axis is None, all non-masked elements are counted. Returns: result : int or ndarray If axis is None, an integer count is returned. When axis is not None, an array with shape determined by the lengths of the remaining axes, is returned. See also count_masked Count masked elements in array or a

MaskedArray.copy()

MaskedArray.copy(order='C') [source] 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 >>>