Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
np.ma.argsort uses default fill_value not largest representable value #2890
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Actually, it is unclear why masked_array.sort/argsort have to use the fill value at all. Basically, NaN values exist in non-masked array as well and there sorting works fine. Can't we treat masked values in the same way as NaN ?
Short example to explain the problem: