Skip to content

indexunary is missing helpers value, row, column, and index #239

Open

Description

@eriknw

I see no reason why these shouldn't exist in indexunary namespace. Any reason for their omission @jim22k?

Also, I noticed that select and indexunary are both directories with a single __init__.py. Unless we expect to put more files in these (such as numpy.py), I would change these to select.py and indexunary.py.

Activity

  1. added
    enhancementImprove existing functionality or make things work better
    featureSomething is missing
    on May 21, 2022
  2. jim22k commented on May 21, 2022

    @jim22k
    Member

    Just an assumption that they wouldn't be used much if at all in indexunary, so I didn't include them. I'm not opposed to someone adding them.

  3. eriknw commented on May 21, 2022

    @eriknw
    MemberAuthor

    Gotcha. I was playing around with mask recipes (shocking, I know), and one recipe for m1 as value mask (such as A.V) and m2 as any other mask is:

    val = indexunary.valuene(m1.parent, False).new(dtype, mask=m2)
    val(val.V, replace=True) << True  # or select.nonzero

    And I was surprised that the indexunary.value helper wasn't there.

  4. added
    good first issueClearly described and easy to accomplish. Good for beginners to the project.
    good second issueClearly described, educational, but less trivial than "good first issue".
    on May 21, 2022
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

    enhancementImprove existing functionality or make things work betterfeatureSomething is missinggood first issueClearly described and easy to accomplish. Good for beginners to the project.good second issueClearly described, educational, but less trivial than "good first issue".

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions