Python | Numpy getmask() method Last Updated : 19 Sep, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report With the help of numpy.getmask() method, we can get the masked matrix of numpy array which shows masked values by using numpy.getmask() method. Syntax : numpy.getmask(array) Return : Return masked values of a matrix. Example #1 : In this example we can see that by using numpy.getmask() method, we are able to get the masked matrix of an array. Python3 1=1 # import numpy import numpy.ma as ma gfg = ma.masked_equal([[1, 2], [5, 6]], 5) # using numpy.getmask() method print(ma.getmask(gfg)) Output : [[False False] [ True False]] Example #2 : Python3 1=1 # import numpy import numpy.ma as ma gfg = ma.masked_equal([11, 12, 13, 14, 15], 12) # using numpy.getmask() method print(ma.getmask(gfg)) Output : [False True False False False] Comment More infoAdvertise with us Next Article Python | Numpy getmask() method J jitender_1998 Follow Improve Article Tags : Python Python-numpy Practice Tags : python Similar Reads Python | Numpy getmaskarray() method With the help of numpy.getmaskarray() method, we can get the masked matrix in the form numpy array which shows masked values by using numpy.getmaskarray() method. Syntax : numpy.getmaskarray(array) Return : Return masked values in the form of numpy array. Example #1 : In this example we can see that 1 min read python | Numpy masked_equal() method With the help of numpy.ma.masked_equal() method, we can get the mask a value that in an array by using numpy.ma.masked_equal() method. Syntax : numpy.ma.masked_equal(array, value) Return : Return the array after removing mask value. Example #1 : In this example we can see that by using numpy.ma.mask 1 min read Python | Numpy np.mask_or() method With the help of np.mask_or() method, we can combine the two masks with logical OR operator by using np.mask_or() method. Syntax : np.mask_or(m1, m2) Return : Return the masks with logical OR operator. Example #1 : In this example we can see that by using np.mask_or() method, we are able to get the 1 min read Python | numpy.ma.ids() method With the help of numpy.ma.ids() method, we can get the address of masked array having data by using numpy.ma.ids() method. Syntax : numpy.ma.ids(array, mask) Return : Return the address of masked array. Example #1 : In this example we can see that by using numpy.ma.ids() method, we are able to get t 1 min read Python | Numpy MaskedArray.__gt__ numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__gt__ operator we can find that which element in an array is greater than the value which is provided in the parameter. Syntax: numpy.MaskedArray.__gt__ 1 min read Like