# Tag Archives: Python Numpy-Masked Array

numpy.ma.make_mask_none() function return a boolean mask of the given shape, filled with False. This function returns a boolean ndarray with all entries False, that can… Read More
In thisnumpy.ma.mask_cols() function, mask columns of a 2D array that contain masked values. This function is a shortcut to mask_rowcols with axis equal to 1.… Read More
numpy.ma.clump_unmasked() function returns list of slices corresponding to the unmasked clumps of a 1-D array. Syntax : numpy.ma.clump_unmasked(arr) Parameters : arr : [ndarray] A one-dimensional… Read More
numpy.ma.clump_masked() function returns a list of slices corresponding to the masked clumps of a 1-D array. Syntax : numpy.ma.clump_masked(arr) Parameters : arr : [ndarray] A… Read More
numpy.ma.notmasked_edges() function find the indices of the first and last unmasked values along an axis. Return None, if all values are masked. Otherwise, return a… Read More
numpy.ma.flatnotmasked_edges() function find the indices of the first and last unmasked values. Syntax : numpy.ma.flatnotmasked_edges(arr) Parameters : arr : [ array_like] Input 1-D MaskedArray. Return… Read More
numpy.ma.flatnotmasked_contiguous() function find contiguous unmasked data in a masked array along the given axis.   Syntax : numpy.ma.flatnotmasked_contiguous(arr)Parameters : arr : [ array_like] The input array.Return :… Read More
numpy.ma.mask_or() function combine two masks with the logical_or operator. The result may be a view on m1 or m2 if the other is nomask (i.e.… Read More
numpy.ma.make_mask() function is used to create a boolean mask from an array. This function can accept any sequence that is convertible to integers, or nomask. It… Read More
In this numpy.ma.mask_rowcols() function, mask rows and/or columns of a 2D array that contain masked values. The masking behavior is selected using the axis parameter.… Read More
In this numpy.ma.mask_rows() function, mask rows of a 2D array that contain masked values. This function is a shortcut to mask_rowcols with axis equal to… Read More
numpy.ma.append() function append the values to the end of an array. Syntax : numpy.ma.append(arr1, arr2, axis = None) Parameters : arr1 : [array_like] Values are… Read More
numpy.ma.getdata() function is used return the data of a masked array as an ndarray. Return the data of arr as an ndarray if arr is… Read More
numpy.MaskedArray.compressed() function return all the non-masked data as a 1-D array. Syntax : numpy.MaskedArray.compressed(self) Return : [ndarray] A new ndarray holding the non-masked data is… Read More
numpy.MaskedArray.filled() function return a copy of self, with masked values filled with a given value. However, if there are no masked values to fill, self… Read More