This also applies to - https://numpy.org/doc/stable/reference/generated/numpy.argmax.html - https://numpy.org/doc/stable/reference/generated/numpy.argmin.html and their nan* counterparts.
An `initial` argument could be added to handle the empty case, as with np.max and np.min. _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com