Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
np argmin top n
Ryder Wh
Programming language:
Whatever
2021-06-30 14:06:44
0
Q:
np argmin top n
Ankit
Code:
Whatever
2021-02-09 11:29:23
idx = (-arr).argsort()[:n]
2
Benjamin cooper
Code:
Whatever
2021-07-31 09:22:01
# For a 2D array indices = np.argpartition(arr, -N, axis=1)[:, -N:]
1
Related
np.array average row
np list to np
np array n same values
np.zeros
min of numpy array
np sum
numpy fill with 0
getting range lowest and highest values from np array
np arange shape
np.nditer
New to Communities?
Join the community