
April 8, 2024
1:04 p.m.
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.