Masked array operations#
Constants#
alias of |
Creation#
From existing data#
alias of |
|
|
An array class with possibly masked values. |
|
Return a copy of the array. |
|
Interpret a buffer as a 1-dimensional array. |
|
Construct an array by executing a function over each coordinate. |
|
Return a copy of the array. |
Create a two-dimensional array with the flattened input as a diagonal. |
Ones and zeros#
|
Return a new array of given shape and type, without initializing entries. |
|
Return a new array with the same shape and type as a given array. |
|
Empty masked array with all elements masked. |
|
Empty masked array with the properties of an existing array. |
|
Return a new array of given shape and type, filled with ones. |
Return an array of ones with the same shape and type as a given array. |
|
|
Return a new array of given shape and type, filled with zeros. |
Return an array of zeros with the same shape and type as a given array. |
Inspecting the array#
|
Returns True if all elements evaluate to True. |
|
Returns True if any of the elements of a evaluate to True. |
|
Count the non-masked elements of the array along the given axis. |
|
Count the number of masked elements along the given axis. |
|
Return the mask of a masked array, or nomask. |
|
Return the mask of a masked array, or full boolean array of False. |
|
Return the data of a masked array as an ndarray. |
|
Return the indices of unmasked elements that are not zero. |
|
Return the shape of an array. |
|
Return the number of elements along a given axis. |
|
Determine whether input has masked values. |
|
Return True if m is a valid, standard mask. |
Test whether input is an instance of MaskedArray. |
|
|
Test whether input is an instance of MaskedArray. |
|
Test whether input is an instance of MaskedArray. |
|
Calculates element in test_elements, broadcasting over element only. |
|
Test whether each element of an array is also present in a second array. |
|
Finds the unique elements of an array. |
|
Returns True if all elements evaluate to True. |
|
Returns True if any of the elements of a evaluate to True. |
|
Count the non-masked elements of the array along the given axis. |
Return the indices of unmasked elements that are not zero. |
|
|
Return the shape of an array. |
|
Return the number of elements along a given axis. |
Returns the underlying data, as a view of the masked array. |
|
Current mask. |
|
Get or set the mask of the array if it has no named fields. |
Manipulating a MaskedArray#
Changing the shape#
|
Returns a 1D version of self, as a view. |
|
Returns an array containing the same data with a new shape. |
|
Return a new masked array with the specified size and shape. |
|
Return a copy of the array collapsed into one dimension. |