However it only evaluates along a single axis and returns the index of the minimum value along a single row/column whereas I wish to evaluate the whole array and return the lowest value not the indices.

numpy.argmin does not by default evaluate along a single axis, the default is to evaluate along the flattened matrix and it returns the linear index in the flattened array; from the numpy docs that you linked:

By default, the index is into the flattened array, otherwise along the specified axis.

Either way, use numpy.amin or numpy.min to return the minimum value, or equivalently for an array arrname use arrname.min(). As you mentioned, numpy.argmin returns the index of the minimum value (of course, you can then use this index to return the minimum value by indexing your array with it). You could also flatten into a single dimension array with arrname.flatten() and pass that into the built-in min function.

The four following methods produce what you want.

import numpy as np

values = np.array([
    [8,2,3,4,5,6],
    [3,6,6,7,2,6],
    [3,8,5,1,2,9],
    [6,4,2,7,8,3]])

values.min()          # = 1
np.min(values)        # = 1
np.amin(values)       # = 1
min(values.flatten()) # = 1
Answer from alkasm on Stack Overflow
🌐
ProjectPro
projectpro.io › recipes › compute-min-by-max-for-each-row-for-numpy-array-2d
How to compute the min-by-max for each row for a numpy array 2d? -
June 20, 2022 - print("The minimum value from each row is:","\n",np.min(Sample_array, axis=1),"\n") print("The maximum value from each row is:","\n",np.max(Sample_array, axis=1)) The minimum value from each row is: [1 4 7] The maximum value from each row is: [33 6 9]
🌐
Python Data Science Handbook
jakevdp.github.io › PythonDataScienceHandbook › 02.04-computation-on-arrays-aggregates.html
Aggregations: Min, Max, and Everything In Between | Python Data Science Handbook
In particular, their optional arguments have different meanings, and np.sum is aware of multiple array dimensions, as we will see in the following section. Similarly, Python has built-in min and max functions, used to find the minimum value and maximum value of any given array:
🌐
GeeksforGeeks
geeksforgeeks.org › python-max-min-value-in-nth-column-in-matrix
Python | Max/Min value in Nth Column in Matrix - GeeksforGeeks
April 12, 2023 - Syntax : numpy.ma.minimum_fill_value(obj) Parameters: obj :[ ndarray, dtype or scalar ] The array data-type or scalar for which the maximum fill value is returned. R · 2 min read Python - Iterate over Columns in NumPy · Numpy (abbreviation for 'Numerical Python') is a library for performing large-scale mathematical operations in a fast and efficient manner. This article serves to educate you about methods one could use to iterate over columns in an 2D NumPy array.
🌐
Quora
quora.com › How-can-I-find-the-maximum-value-in-the-first-column-in-an-array-in-Python
How to find the maximum value in the first column in an array in Python - Quora
What if you wanted only numbers ... which can be indexed like 1 dimensional arrays. If you have such a thing, then min( ) and max() will work....
🌐
Stack Overflow
stackoverflow.com › questions › 62640288 › how-to-find-max-min-and-average-by-using-if-technique-in-a-2d-array-in-python
how to find max, min and average by using if technique in a 2d array in python - Stack Overflow
You can 1) Flatten the list of lists and then take max, min, avg OR 2) use the fact that it is a 2d list and use a double loop ... Putnam I've tried the following program so far:x=[[80,59,34,89],[31,11,47,64],[29,56,13,91],[55,61,48,0],[75,...
Find elsewhere
🌐
Educative
educative.io › answers › find-the-maximum-value-in-each-row-and-column-of-a-numpy-2d-array
Find the maximum value in each row and column of a NumPy 2D array
In this shot we will discuss on how to find the maximum value across each row and each column in a NumPy 2D array. To solve the problem mentioned above, we will use amax() method from the numpy python package.
🌐
Pythontic
pythontic.com › numpy › ndarray › min_max
The min() and max() functions of ndarray | Pythontic.com
The min() and max() functions of numpy.ndarray returns the minimum and maximum values of an ndarray object.
🌐
Sharp Sight
sharpsight.ai › blog › numpy-min
Numpy Min, Explained - Sharp Sight
February 6, 2024 - That means that we can call our function as np.min(). Here, we’re going to create a 1D array and a 2D array.
🌐
Python
mail.python.org › pipermail › tutor › 2007-March › 053283.html
[Tutor] Finding the minimum value in a multidimensional array
July 26, 2016 - In a n*n array this will lead to N values which need both indexing and comparing. Perhaps this is the only solution around but i hope not. In either way thanks for your time and suggestion. Regards Geofram On 3/13/07, Eike Welk <eike.welk at gmx.net> wrote: > > On Tuesday 13 March 2007 11:57, Geoframer wrote: > > Hey everyone, > > > > I've been trying to locate a way to find the location of the > > minimum ...
🌐
Real Python
realpython.com › numpy-max-maximum
NumPy's max() and maximum(): Find Extreme Values in Arrays – Real Python
January 18, 2025 - Now that you have some experience using NumPy’s max() and maximum() functions in Python, you can use the questions and answers below to check your understanding and recap what you’ve learned.
🌐
Stack Overflow
stackoverflow.com › questions › 73373471 › how-to-min-max-scale-a-2d-numpy-array-globally
How to min-max scale a 2d numpy array globally - Stack Overflow
from sklearn.preprocessing import minmax_scale arr = np.array([[1,2,3],[4,5,6],[11,12,13]]) print(arr) scaled_array = minmax_scale(arr, axis=0) print(scaled_array)
🌐
NumPy
numpy.org › doc › 2.2 › reference › generated › numpy.minimum.html
numpy.minimum — NumPy v2.2 Manual
Compare two arrays and return a new array containing the element-wise minima. If one of the elements being compared is a NaN, then that element is returned. If both elements are NaNs then the first is returned. The latter distinction is important for complex NaNs, which are defined as at least one of the real or imaginary parts being a NaN.