Search
Search Results
Search finished, found 139 page(s) matching the search query.
- numpy.ma.MaskType.fill
...numpy.ma.MaskType.fill...
- numpy.ma.MaskType.fill (Python method, in numpy.ma.MaskType.fill)
- Constants of the
numpy.ma
module....masked True >>> x[-1] = ma.masked >>> x masked_array(data=[1, --, --], mask=[False, True, True], fill_value=999999) numpy.ma.nomask Value indicating that a masked array has no invalid entry. nomask is used inter...
- NumPy 1.10.0 Release Notes
...ng the monic polynomial. It is still possible to obtain higher precision results by passing in an array of object type, filled e.g. with Python ints. np.interp can now be used with periodic functions np.interp now has a new parameter peri...
- NumPy 1.12.0 Release Notes
...in reshape, take, and specifying reduce axis. FutureWarning to changed behavior np.full now returns an array of the fill-value’s dtype if no dtype is given, instead of defaulting to float. np.average will emit a warning if the argument...
- NumPy 1.18.0 Release Notes
...lso affects the C defined functions PyArray_FromString and PyArray_FromFile (gh-13605) Deprecate non-scalar arrays as fill values in ma.fill_value Setting a MaskedArray.fill_value to a non-scalar array is deprecated since the logic to bro...
- NumPy 1.24 Release Notes
...aising an error since they will be mapped to the NumPy scalars in the future. (gh-22607) Compatibility notes array.fill(scalar) may behave slightly different numpy.ndarray.fill may in some cases behave slightly different now due to the...
- NumPy 1.25.0 Release Notes
...rap" will return different results when the padding size is larger than initial array. np.pad with mode=wrap now always fills the space with strict multiples of original data even if the padding size is larger than the initial array. (gh-22...
- NumPy 1.7.2 Release Notes
...3.3 and is the last series that supports Python 2.4 - 2.5. Issues fixed gh-3153: Do not reuse nditer buffers when not filled enough gh-3192: f2py crashes with UnboundLocalError exception gh-442: Concatenate with axis=None now requires equ...
- NumPy 1.9.0 Release Notes
...rted. ndarray.tofile exception type All tofile exceptions are now IOError, some were previously ValueError. Invalid fill value exceptions Two changes to numpy.ma.core._check_fill_value: When the fill value is a string and the array typ...
- NumPy 1.9.2 Release Notes
...rder #5354: fix segfault when clipping complex arrays #5524: allow np.argpartition on non ndarrays #5612: Fixes ndarray.fill to accept full range of uint64 #5155: Fix loadtxt with comments=None and a string None data #4476: Masked array vie...
- NumPy 2.0.0 Release Notes
..._ufunc__ or rely on __array_wrap__ which is called with a context in all cases, although only after the result array is filled. In those code paths, __array_wrap__ will now be passed a base class, rather than a subclass array. (gh-25105)...
- numpy.ma.append
...MaskedArrayA copy of a with b appended to axis. Note that append does not occur in-place: a new array is allocated and filled. If axis is None, the result is a flattened array. See also numpy.appendEquivalent function in the top-lev...
- numpy.ma.argmax
...numpy.ma.argmax ma.argmax(self, axis=None, fill_value=None, out=None) = <numpy.ma.core._frommethod object> Returns array of indices of the maximum values along the...
- numpy.ma.argmin
...numpy.ma.argmin ma.argmin(self, axis=None, fill_value=None, out=None) = <numpy.ma.core._frommethod object> Return array of indices to the minimum values along the...
- numpy.ma.argsort
...numpy.ma.argsort ma.argsort(a, axis=<no value>, kind=None, order=None, endwith=True, fill_value=None, *, stable=None)[source] Return an ndarray of indices that sort the array along the specified axis. Mas...
- numpy.ma.array
...numpy.ma.array ma.array(data, dtype=None, copy=False, order=None, mask=np.False_, fill_value=None, keep_mask=True, hard_mask=False, shrink=True, subok=True, ndmin=0)[source] An array class with possibly...
- numpy.ma.common_fill_value
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.common_fill_value...
- numpy.ma.copy
...h by default. Examples >>> import numpy as np >>> x = np.array([[1,2,3],[4,5,6]], order='F') >>> y = x.copy() >>> x.fill(0) >>> x array([[0, 0, 0], [0, 0, 0]]) >>> y array([[1, 2, 3], [4, 5, 6]]) >>> y.flags['C_CONTI...
- numpy.ma.default_fill_value
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.default_fill_value...
- numpy.ma.empty
...ew array setting values to one. zerosReturn a new array setting values to zero. fullReturn a new array of given shape filled with value. Notes Unlike other array creation functions (e.g. zeros, ones, full), empty does not initialize th...
- numpy.ma.empty_like
...put. zeros_likeReturn an array of zeros with shape and type of input. full_likeReturn a new array with shape of input filled with value. emptyReturn a new uninitialized array. Notes Unlike other array creation functions (e.g. zeros_li...
- numpy.ma.filled
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.filled...
- numpy.ma.fix_invalid
...numpy.ma.fix_invalid ma.fix_invalid(a, mask=np.False_, copy=True, fill_value=None)[source] Return input with invalid data masked and replaced by a fill value. Invalid data means values o...
- numpy.ma.is_mask
..., 0, 2, 3], 0) >>> m masked_array(data=[--, 1, --, 2, 3], mask=[ True, False, True, False, False], fill_value=0) >>> ma.is_mask(m) False >>> ma.is_mask(m.mask) True Input must be an ndarray (or have similar attributes...
- numpy.ma.make_mask
...all its values are False. dtypedtype, optionalData-type of the output mask. By default, the output mask has a dtype of MaskType (bool). If the dtype is flexible, each field has a boolean dtype. This is ignored when m is nomask, in which ca...
- numpy.ma.make_mask_none
...numpy.ma.make_mask_none ma.make_mask_none(newshape, dtype=None)[source] Return a boolean mask of the given shape, filled with False. This function returns a boolean ndarray with all entries False, that can be used in common mask manip...
- numpy.ma.masked_array.argmax
...numpy.ma.masked_array.argmax method ma.masked_array.argmax(axis=None, fill_value=None, out=None, *, keepdims=<no value>)[source] Returns array of indices of the maximum values along the give...
- numpy.ma.masked_array.argmin
...numpy.ma.masked_array.argmin method ma.masked_array.argmin(axis=None, fill_value=None, out=None, *, keepdims=<no value>)[source] Return array of indices to the minimum values along the given...
- numpy.ma.masked_array.argsort
...numpy.ma.masked_array.argsort method ma.masked_array.argsort(axis=<no value>, kind=None, order=None, endwith=True, fill_value=None, *, stable=False)[source] Return an ndarray of indices that sort the array along the specified axis. Ma...
- numpy.ma.masked_array.copy
...h by default. Examples >>> import numpy as np >>> x = np.array([[1,2,3],[4,5,6]], order='F') >>> y = x.copy() >>> x.fill(0) >>> x array([[0, 0, 0], [0, 0, 0]]) >>> y array([[1, 2, 3], [4, 5, 6]]) >>> y.flags['C_CONTI...
- numpy.ma.masked_array.fill
...numpy.ma.masked_array.fill...
- numpy.ma.masked_array.fill_value
...numpy.ma.masked_array.fill_value...
- numpy.ma.masked_array.filled
...numpy.ma.masked_array.filled...
- numpy.ma.masked_array.get_fill_value
...numpy.ma.masked_array.get_fill_value...
- numpy.ma.masked_array.max
...numpy.ma.masked_array.max method ma.masked_array.max(axis=None, out=None, fill_value=None, keepdims=<no value>)[source] Return the maximum along a given axis. Parameters: axisNone or int or tu...
- numpy.ma.masked_array.min
...numpy.ma.masked_array.min method ma.masked_array.min(axis=None, out=None, fill_value=None, keepdims=<no value>)[source] Return the minimum along a given axis. Parameters: axisNone or int or tu...
- numpy.ma.masked_array.ptp
...numpy.ma.masked_array.ptp method ma.masked_array.ptp(axis=None, out=None, fill_value=None, keepdims=False)[source] Return (maximum - minimum) along the given dimension (i.e. peak-to-peak value)....
- numpy.ma.masked_array.tobytes
...numpy.ma.masked_array.tobytes method ma.masked_array.tobytes(fill_value=None, order='C')[source] Return the array data as a string containing the raw bytes in the array. The array i...
- numpy.ma.masked_array.view
...numpy.ma.masked_array.view method ma.masked_array.view(dtype=None, type=None, fill_value=None)[source] Return a view of the MaskedArray data. Parameters: dtypedata-type or ndarray sub-class, optio...
- numpy.ma.masked_inside
...1 and v2 can be given in either order. See also masked_whereMask where a condition is met. Notes The array x is prefilled with its filling value. Examples >>> import numpy as np >>> import numpy.ma as ma >>> x = [0.31, 1.2, 0.01, 0.2,...
- numpy.ma.masked_outside
...1 and v2 can be given in either order. See also masked_whereMask where a condition is met. Notes The array x is prefilled with its filling value. Examples >>> import numpy as np >>> import numpy.ma as ma >>> x = [0.31, 1.2, 0.01, 0.2,...
- numpy.ma.MaskedArray.argmax
...numpy.ma.MaskedArray.argmax method ma.MaskedArray.argmax(axis=None, fill_value=None, out=None, *, keepdims=<no value>)[source] Returns array of indices of the maximum values along the give...
- numpy.ma.MaskedArray.argmin
...numpy.ma.MaskedArray.argmin method ma.MaskedArray.argmin(axis=None, fill_value=None, out=None, *, keepdims=<no value>)[source] Return array of indices to the minimum values along the given...
- numpy.ma.MaskedArray.argsort
...numpy.ma.MaskedArray.argsort method ma.MaskedArray.argsort(axis=<no value>, kind=None, order=None, endwith=True, fill_value=None, *, stable=False)[source] Return an ndarray of indices that sort the array along the specified axis. Ma...
- numpy.ma.MaskedArray.copy
...h by default. Examples >>> import numpy as np >>> x = np.array([[1,2,3],[4,5,6]], order='F') >>> y = x.copy() >>> x.fill(0) >>> x array([[0, 0, 0], [0, 0, 0]]) >>> y array([[1, 2, 3], [4, 5, 6]]) >>> y.flags['C_CONTI...
- numpy.ma.MaskedArray.fill
...Array objects Masked arrays Constants of the numpy.ma module numpy.ma.MaskedArray.fill...
- numpy.ma.MaskedArray.filled
...Py reference NumPy’s module structure Masked array operations numpy.ma.MaskedArray.filled...
- numpy.ma.MaskedArray.get_fill_value
- numpy.ma.MaskedArray.max
- numpy.ma.MaskedArray.min
- numpy.ma.MaskedArray.ptp
- numpy.ma.MaskedArray.tobytes
- numpy.ma.MaskedArray.view
- numpy.ma.MaskType
- numpy.ma.MaskType.all
- numpy.ma.MaskType.any
- numpy.ma.MaskType.argmax
- numpy.ma.MaskType.argmin
- numpy.ma.MaskType.argsort
- numpy.ma.MaskType.astype
- numpy.ma.MaskType.base
- numpy.ma.MaskType.byteswap
- numpy.ma.MaskType.choose
- numpy.ma.MaskType.clip
- numpy.ma.MaskType.compress
- numpy.ma.MaskType.conj
- numpy.ma.MaskType.conjugate
- numpy.ma.MaskType.copy
- numpy.ma.MaskType.cumprod
- numpy.ma.MaskType.cumsum
- numpy.ma.MaskType.data
- numpy.ma.MaskType.device
- numpy.ma.MaskType.diagonal
- numpy.ma.MaskType.dtype
- numpy.ma.MaskType.dump
- numpy.ma.MaskType.dumps
- numpy.ma.MaskType.fill
- numpy.ma.MaskType.flags
- numpy.ma.MaskType.flat
- numpy.ma.MaskType.flatten
- numpy.ma.MaskType.getfield
- numpy.ma.MaskType.imag
- numpy.ma.MaskType.item
- numpy.ma.MaskType.itemset
- numpy.ma.MaskType.itemsize
- numpy.ma.MaskType.max
- numpy.ma.MaskType.mean
- numpy.ma.MaskType.min
- numpy.ma.MaskType.nbytes
- numpy.ma.MaskType.ndim
- numpy.ma.MaskType.newbyteorder
- numpy.ma.MaskType.nonzero
- numpy.ma.MaskType.prod
- numpy.ma.MaskType.ptp
- numpy.ma.MaskType.put
- numpy.ma.MaskType.ravel
- numpy.ma.MaskType.real
- numpy.ma.MaskType.repeat
- numpy.ma.MaskType.reshape
- numpy.ma.MaskType.resize
- numpy.ma.MaskType.round
- numpy.ma.MaskType.searchsorted
- numpy.ma.MaskType.setfield
- numpy.ma.MaskType.setflags
- numpy.ma.MaskType.shape
- numpy.ma.MaskType.size
- numpy.ma.MaskType.sort
- numpy.ma.MaskType.squeeze
- numpy.ma.MaskType.std
- numpy.ma.MaskType.strides
- numpy.ma.MaskType.sum
- numpy.ma.MaskType.swapaxes
- numpy.ma.MaskType.T
- numpy.ma.MaskType.take
- numpy.ma.MaskType.to_device
- numpy.ma.MaskType.tobytes
- numpy.ma.MaskType.tofile
- numpy.ma.MaskType.tolist
- numpy.ma.MaskType.tostring
- numpy.ma.MaskType.trace
- numpy.ma.MaskType.transpose
- numpy.ma.MaskType.var
- numpy.ma.MaskType.view
- numpy.ma.max
- numpy.ma.maximum_fill_value
- numpy.ma.min
- numpy.ma.minimum_fill_value
- numpy.ma.ones
- numpy.ma.ones_like
- numpy.ma.ptp
- numpy.ma.resize
- numpy.ma.set_fill_value
- numpy.ma.zeros
- numpy.ma.zeros_like
- The
numpy.ma
module - Glossary
- Masked arrays
- Structured arrays