Open fperez opened 13 years ago
As a preliminary plan, we can try to:
asarray(t)[fancy_indexing]
but return a DataArray instance, just that it has all its axes unnamed and unlabeled.An example where you manually pick out elements, for example, will necessarily drop dimensions, and something like this can't really preserve any labels/axes, since the output's geometry has nothing to do with the input:
In [110]: a = arange(12).reshape(3,4) ...: b = a[[(1,2,1),(0,1,3)]] ...: print a ...: print b [[ 0 1 2 3] [ 4 5 6 7] [ 8 9 10 11]] [4 9 7]
Currently fancy indexing isn't supported at all.