Python | numpy.ma.ids() method Last Updated : 03 Oct, 2019 Comments Improve Suggest changes Like Article Like Report 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 the address of the targeted masked array. Python3 1=1 # import numpy.ma import numpy.ma as ma # using numpy.ma.ids() method gfg = ma.array([1, 2, 4, 8], mask =[1, 0, 0, 1]) print(gfg.ids()) Output : (2172543392448, 2172542026240) Example #2 : Python3 1=1 # import numpy.ma import numpy.ma as ma # using numpy.ma.ids() method gfg = ma.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], mask =[[1, 0, 0], [0, 1, 0], [0, 0, 1]]) print(gfg.ids()) print(gfg) Output : (2172299359856, 2172543392224) masked_array( data=[[--, 2, 3], [4, --, 6], [7, 8, --]], mask=[[ True, False, False], [False, True, False], [False, False, True]], fill_value=999999) Comment More infoAdvertise with us Next Article Python | numpy.ma.ids() method J jitender_1998 Follow Improve Article Tags : Technical Scripter Python Python-numpy Practice Tags : python Similar Reads Python | Numpy MaskedArray.__iand__() numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__iand__we can get the elements that is anded by the value that is provided as a parameter in the MaskedArray.__iand__() method. Syntax: numpy.MaskedArray 1 min read Python | Numpy MaskedArray.__ior__() numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__ior__we can get the elements that is OR by the value that is provided as a parameter in the MaskedArray.__ior__() method. Syntax: numpy.MaskedArray.__io 1 min read Python | Numpy MaskedArray.__div__ numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__div__ we can divide a particular value that is provided as a parameter in the MaskedArray.__div__() method. Syntax: numpy.MaskedArray.__div__ Return: Di 1 min read Python | Numpy MaskedArray.__abs__ numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__abs__ operator we can find the absolute value of each and every element in an array. Suppose we have a values 31.74, with the help of MaskedArray.__abs_ 1 min read Python | Numpy MaskedArray.__add__ numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__add__ we can add a particular value that is provided as a parameter in the MaskedArray.__add__() method. Value will be added to each and every element i 1 min read Like