-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
From a discussion in #1473 comment
It would be convenient if we have multi-dimensional reindex method, where we consider dimensions and coordinates of indexers.
The proposed outline by @shoyer is
- Given
reindexarguments of the formdim=arraywherearrayis a 1D unlabeled array/list, convert them intoDataArray(array, [(dim, array)]). - Do multi-dimensional indexing with broadcasting like
sel, but fill inNaNfor missing values (we could allow for customizing this with afill_valueargument). - Join coordinates like for
sel, but coordinates from the indexers take precedence over coordinates from the object being indexed.
max-sixty, shoyer and batterseapower