home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 419173479

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/2399#issuecomment-419173479 https://api.github.com/repos/pydata/xarray/issues/2399 419173479 MDEyOklzc3VlQ29tbWVudDQxOTE3MzQ3OQ== 1217238 2018-09-06T17:18:08Z 2018-09-06T17:18:08Z MEMBER

Let me give a more concrete example of the issue for multi-dimensional indexing: python da_unique = xr.DataArray([0, 1], dims=['x'], coords={'x': ['a', 'b']}) da_nonunique = xr.DataArray([0, 1], dims=['x'], coords={'x': ['a', 'a']}) indexer = xr.DataArray([['a']], dims=['y', 'z']) With a unique index, notice how the result takes on the dimensions of the indexer: ```

da_unique.loc[indexer] <xarray.DataArray (y: 1, z: 1)> array([[0]]) Coordinates: x (y, z) object 'a' Dimensions without coordinates: y, z `` What would you propose for the result ofda_nonunique.loc[indexer]`?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  357156174
Powered by Datasette · Queries took 0.668ms · About: xarray-datasette