With the help of
numpy.ma.ids() method, we can get the address of masked array having data by using
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.
Example #2 :
data=[[–, 2, 3],
[4, –, 6],
[7, 8, –]],
mask=[[ True, False, False],
[False, True, False],
[False, False, True]],
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course