Skip to content

Implement take #1293

Closed
Closed
@WillAyd

Description

@WillAyd

Not sure if there is an equivalent way to sort an array by another, but numpy has take as a convenience function:

https://numpy.org/doc/stable/reference/generated/numpy.take.html

While ndarray has slice and to_slice methods, I don't think these are round-trippable the same way that take would be, since to_slice returns a primitive slice whereas slice looks for a SliceArg argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions