Skip to content

Implement take #1293

Closed
Closed

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

Activity

  1. nilgoyette commented on Jun 8, 2023

    @nilgoyette
    Collaborator

    I think what you are searching is select, no?

  2. WillAyd commented on Jun 9, 2023

    @WillAyd
    ContributorAuthor

    Ah thanks - yea I think that works. Appreciate the guidance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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