JuliaArrays / JuliaArrays/AxisArrays.jl

Slicing until end

Open
#149 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
207
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Is there an already implemented way to slice an AxisArray along an axis from a given point to the end, similar to how one can slice a normal Array with integers? For example:

B = AxisArray(randn(Float64, (10, 10)), Axis{:time}(Date(2018, 1, 1):Day(1):Date(2018, 1, 10)))
We can do this: 
B[5:end, :]
I would like to do something like:
B[Date(2018, 1, 5):end, :]

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the issue's AxisArray example with date-based slicing and compare it with the working integer slice. Trace the existing AxisArray indexing entry point and related tests, then consider the issue done when B[Date(2018, 1, 5):end, :] returns the expected final six dates without regressing integer slicing.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.