Skip to content

Make Array.labelsofsorted, Array.indicesofsorted and Array.sort_values consistent #1038

Open
@gdementen

Description

@gdementen

When used on arrays with ndim >= 2, and without argument is given, Array.sort_values combines axes, while Array.labelsofsorted and Array.indicesofsorted both raise an Exception. FWIW, numpy uses the last axis (axis=1) in those cases.

We discussed this in #225 but never actually done anything about this AFAIK.

From the discussion in #225, I guess we should combine axes by default in labelsofsorted and indicesofsorted. The other option is to make all three methods use the last axis by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions