pydata / pydata/sparse

Arbitrary axis order?

Open
#122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion enhancement
Dominant language
Python
Stars
668
Forks
141
Avg merge
2d 8h
Merged PRs (30d)
4

Description

I just feel it could be beneficial to have an arbirary array order created when creating an array.

Upsides:

  • It can be made so that indexing/reducing is faster along any given dimensions, as well as a number of other operations.

Downsides:

  • It will touch all sort_indices calls and also all cases where we linearize. Mixed orders will need to be handled carefully.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name files or tests; begin by locating the sort_indices calls and the code paths that linearize arrays. Establish how an arbitrary axis order would be represented and how mixed orders should interact before implementation. Done means the supported operations handle the new order without incorrect indexing or reduction behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.