# Python | Numpy np.ma.mini() method

With the help of `np.ma.mini()` method, we can get the minimum value of masked array by using `np.ma.mini()` method.

Syntax : `np.ma.mini()`
Return : Return the minimum value of masked array.

Example #1 :
In this example we can see that by using `np.ma.mini()` method, we are able to get the minimum value of masked array by using this method.

 `# import numpy ` `import` `numpy as np ` `import` `numpy.ma as ma ` ` `  `# using np.ma.mini() method ` `gfg ``=` `ma.array(np.arange(``6``), mask ``=``[``-``2``, ``-``1``, ``0``, ``1``, ``2``, ``3``]).reshape(``3``, ``2``) ` `min` `=` `gfg.mini() ` ` `  `print``(``min``) `

Output :

2

Example #2 :

 `# import numpy ` `import` `numpy as np ` `import` `numpy.ma as ma ` ` `  `# using np.ma.mini() method ` `gfg ``=` `ma.array(np.arange(``10``), mask ``=``[``-``2``, ``-``1``, ``0``, ``1``, ``0``, ``3``, ``0``, ``0``, ``0``, ``0``]).reshape(``2``, ``5``) ` `min` `=` `gfg.mini() ` ` `  `print``(``min``) `

Output :

2

My Personal Notes arrow_drop_up Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.