![]() |
VOOZH | about |
The numpy.amin() function returns minimum of an array or minimum along axis(if mentioned). Syntax : numpy.amin(arr, axis = None, out = None, keepdims = <class numpy._globals._NoValue>) Parameters :
Return : Minimum of array - arr[ndarray or scalar], scalar if axis is None; the result is an array of dimension a.ndim - 1, if axis is mentioned. Code -
Output -
arr : [0 1 2 3 4 5 6 7] Min of arr : 0 arr : [[0 1 2 3 4] [5 6 7 8 9]] Min of arr, axis = None : 0 Min of arr, axis = 0 : [0 1 2 3 4] Min of arr, axis = 1 : [0 5]
References - https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.amin.html#numpy.amin
Note - These codes won't run on online IDE's. So please, run them on your systems to explore the working.