Closed AlbertoSinigaglia closed 1 year ago
From the docstring;
if
missing
is 'ignore', all elements ofthat
are assumed to be present inthis
, and output is undefined otherwise
[1,2,4]
isnt to be found in the zeroth axis of items
; hence you get undefined output.
Maybe you meant to pass in an axis=1 arg?
From the docstring;
if
missing
is 'ignore', all elements ofthat
are assumed to be present inthis
, and output is undefined otherwise
[1,2,4]
isnt to be found in the zeroth axis ofitems
; hence you get undefined output.Maybe you meant to pass in an axis=1 arg?
What's the point of having a undefined behavior in a case where there is a obvious intuitive behavior?... wouldn't it be so nice to remove the "undefineteness"?
What 'obvious intuitive behavior' do you have in mind, for a nonexisting lookup, whos error message you chose to suppress?
by the doc, it should be that
this[indexes] == that
, however:returns
[1,1]
Any explanation?
Edit:
same changing the axis... I would expect to treat each subvector as "item to search from/into", thus in this case there should be just
1
returned... however, even stranger, usingto_search = np.array([[1,2,4])
returns something.. which does not makes sense, as there are no element that matches it