Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Indexing is broken #153

Closed
gragusa opened this issue Jun 8, 2015 · 1 comment
Closed

Indexing is broken #153

gragusa opened this issue Jun 8, 2015 · 1 comment

Comments

@gragusa
Copy link

gragusa commented Jun 8, 2015

This is reproducible (on 0.4.0-dev+5252) (and generate problems with the indexing of DataFrames (see issue see issue #810:

da = @data([1, 2, NA, 4])
da[1:3]
ERROR: DimensionMismatch("index 1 has size (3,), but size(A) = ()")
 in checksize at multidimensional.jl:287
 in anonymous at /Users/gragusa/.julia/v0.4/Compat/src/ngenerate.jl:128
 in getindex at /Users/gragusa/.julia/v0.4/DataArrays/src/indexing.jl:159

I tracked down the issue to a misbehaviour of Base.index_shape

Base.index_shape(Base.to_index([1:2], [1])...)

gives

(1,)

instead of

(2,1)
@alyst
Copy link
Member

alyst commented Jun 14, 2015

I've also hit the issue. There's already a pull request #152 addressing this. Until it's merged to the master, you can just switch to that branch.

@alyst alyst closed this as completed Aug 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants