issues: 278325492
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
278325492 | MDExOlB1bGxSZXF1ZXN0MTU1NzYwMzQz | 1751 | Indexing Variable objects with a mask | 1217238 | closed | 0 | 11 | 2017-12-01T01:12:03Z | 2017-12-18T05:39:18Z | 2017-12-18T05:38:13Z | MEMBER | 0 | pydata/xarray/pulls/1751 | This will be useful for multi-dimensional reindexing: marking masked items with -1 is exactly the convention used by pandas.Index.get_indexer(). Example usage:
This uses where() so it isn't the most efficient (there is some wasted effort doing indexing, as noted in the TODOs), but the implementation is pretty clean and already works with dask. For now, I'm leaving this as private API, but let's expose it publicly in the future if we are happy with it. I would probably leave it as a Variable method since this is pretty low-level.
cc @fujiisoup @mraspaud |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1751/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |