home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 105414928

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
105414928 MDU6SXNzdWUxMDU0MTQ5Mjg= 560 replace time coordinates for whole year 10194086 closed 0     3 2015-09-08T16:09:52Z 2015-09-08T16:40:52Z 2015-09-08T16:40:52Z MEMBER      

It is quite convenient to select a whole year ds.sel(time='1991'). However, sel should not be used to assign data. Thus you can not do ds.sel(time='1991').coords['time'] = time and ds[dict(time='1991')] does not work.

1) Should ds[dict(time='1991')] work?

2) A possible workaround is:

idx = xray.core.indexing.remap_label_indexers(ds, {'time' : '1999'}) ds[idx] = time

Should this be added to the documentation or is this case too uncommon?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/560/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 0.591ms · About: xarray-datasette