JuliaStats / TimeSeries.jl

Time series toolkit for Julia
Other
352 stars 69 forks source link

duplicated time index supporting on `getindex` #458

Closed iblislin closed 3 years ago

iblislin commented 4 years ago

Since we starting to move toward accepting dup time index, cl[[Date(2001, 10, 1), Date(2001, 5, 1), Date(2011, 5, 1)]] should output with duplicated time index.

Current output:

julia> cl[[Date(2001, 10, 1), Date(2001, 5, 1), Date(2011, 5, 1)]]
2×1 TimeArray{Float64,1,Date,Array{Float64,1}} 2001-05-01 to 2001-10-01
│            │ Close │
├────────────┼───────┤
│ 2001-05-01 │ 25.93 │
│ 2001-10-01 │ 15.54 │
sencilla commented 3 years ago

So when is this feature available?

iblislin commented 3 years ago

Hi @sencilla The patch is included in v0.19.x https://github.com/JuliaStats/TimeSeries.jl/commit/ed0cd207d379fe7959a00e5772034fcaec4b5eb5