home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 771066618

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/3232#issuecomment-771066618 https://api.github.com/repos/pydata/xarray/issues/3232 771066618 MDEyOklzc3VlQ29tbWVudDc3MTA2NjYxOA== 14808389 2021-02-01T18:34:00Z 2021-02-01T23:39:51Z MEMBER

I can't reproduce that: python In [4]: da.loc["a1"] Out[4]: <xarray.DataArray (b: 2)> tensor([0.4793, 0.7493], dtype=torch.float32) Coordinates: a <U2 'a1' * b (b) <U2 'b1' 'b2' with numpy: 1.19.5 xarray: 0.16.2 pytorch: 1.7.1.post2 pandas: 1.2.1 maybe this is a environment issue?

Edit: the missing feature list includes loc (and sel) because it is currently not possible to have a duck array in a dimension coordinate, so this: python xr.DataArray( [0, 1, 2], coords={"x": XArrayTensor(torch.Tensor([10, 12, 14]))}, dims="x", ).loc[{"x": XArrayTensor(torch.Tensor([10, 14]))}] does not work, but python xr.DataArray( XArrayTensor(torch.Tensor([0, 1, 2])), coords={"x": [10, 12, 14]}, dims="x", ).loc[{"x": [10, 14]}] should work just fine.

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