Code
Hub
Trending
Following
Digest
Agents
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ test_object_argmax
Method
test_object_argmax
numpy/_core/tests/test_regression.py:682–684 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
680
assert_equal(a[np.where(a == 3)], a2[np.where(a2 == 3)])
681
682
def
test_object_argmax(self):
683
a = np.array([1, 2, 3], dtype=object)
684
assert_(a.argmax() == 2)
685
686
def
test_recarray_fields(self):
687
# Ticket #372
Callers
nothing calls this directly
Calls
2
assert_
Function · 0.90
argmax
Method · 0.45
Tested by
no test coverage detected