BUG: unique
with NaNs and along an axis inconsistent with flat version
#20873
Labels
unique
with NaNs and along an axis inconsistent with flat version
#20873
Describe the issue:
Running
np.unique
on a flat array with multipleNaN
s only returns oneNaN
. Running along an axis that has duplicated rows containingNaN
s returns both rows however.I suspect this is related to #20326 - whatever the decision here I think the result should be consistent between
axis=None
andaxis=0
.Reproduce the code example:
Error message:
No response
NumPy/Python version information:
1.22.1
3.9.7 (default, Sep 16 2021, 08:50:36)
[Clang 10.0.0 ]
The text was updated successfully, but these errors were encountered: