Given a 2D numpy array, e.g. np.array([[1,1,0], [1,2,0], [0,0,4]]), I want to return the sub-array with the minimal sum.
In this case, this would be the array np.array([1,1,0]).
How can I achieve this, ideally only using built-in numpy functions? It seems numpy does not allow specifying a key function, unlike vanilla python.