home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 588112617

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
588112617 MDU6SXNzdWU1ODgxMTI2MTc= 3894 Add public API for Dataset._copy_listed 1386642 open 0     15 2020-03-26T02:39:34Z 2022-04-18T16:41:39Z   CONTRIBUTOR      

In my data pipelines, I have been repeatedly burned using indexing notation to grab a few variables from a dataset in the following way: ds = xr.Dataset(...) vars = ('a' , 'b', 'c') ds[vars] # this errors ds[list(vars)] # this is ok Moreover, because Dataset__getitem__ is type unstable, it makes it hard to detect this kind of error using mypy, so it often appears 30 minutes into a long data pipeline. It would be great to have a type-stable method that can take any sequence of variable names and return the Dataset consisting of those variables and their coordinates only. In fact, this method already exists, but it currently not public API. Could we make it so? Thanks.

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

Links from other tables

  • 1 row from issues_id in issues_labels
  • 15 rows from issue in issue_comments
Powered by Datasette · Queries took 0.571ms · About: xarray-datasette