The easiest way is to convert to tuple/lists for the sake of comparison (or implement the comparison yourself):
>>> max(a, key=tuple)
array([8, 3])
Note this is the builtin max
and not np.max
EDIT:
For multi dimensional arrays, use the .tolist
method:
max(a, key=operator.methodcaller('tolist'))