home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 604543399

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/1519#issuecomment-604543399 https://api.github.com/repos/pydata/xarray/issues/1519 604543399 MDEyOklzc3VlQ29tbWVudDYwNDU0MzM5OQ== 6980561 2020-03-26T16:50:44Z 2020-03-26T16:50:44Z NONE

I'm re-pinging this issue since I was just bitten by it (on version 0.15).

If creating an exception is time consuming could we instead have a disclaimer regarding this behavior to the documentation? Here's a basic working example that shows that it does silently fail:

```

Basic working example of the silently failing indexing assignment

ds = xr.Dataset({'a': (('x'), np.arange(4)), 'b': (('x'), np.arange(4)) })

Silently fails assignment

ds.loc[{'x': 1}]['a'] = 10 print(ds)

Works as intended

ds['a'].loc[{'x': 1}] = 10 print(ds) ```

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