Suppress index array in returned ordered dict

Is there a way to suppress the index array in the ordered dict that returns after slicing a tiledb array?

Hi @alexhamiltonRN,

Yes, assuming you’ve done a ="<array path>"), then the following will return only the attributes:

a.query(dims=False)[<your index selection>]`

The indexing works identically to a[<index selection>].

Also, if you happen to have a multi-attribute or multi-dim dataset, then you can select subsets by passing a list of names to attrs or dims, for example: attrs=['a1','a2'] or dims=['d1','d2'].


1 Like