home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 526751676

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/pull/3258#issuecomment-526751676 https://api.github.com/repos/pydata/xarray/issues/3258 526751676 MDEyOklzc3VlQ29tbWVudDUyNjc1MTY3Ng== 2448579 2019-08-30T21:11:28Z 2019-08-30T21:11:28Z MEMBER

Thanks @mrocklin. Unfortunately that doesn't work with the Dataset constructor. With a list it treats it as array-like

``` The following notations are accepted:

- mapping {var name: DataArray}
- mapping {var name: Variable}
- mapping {var name: (dimension name, array-like)}
- mapping {var name: (tuple of dimension names, array-like)}
- mapping {dimension name: array-like}
  (it will be automatically moved to coords, see below)

```

Unless @shoyer has another idea, I guess I can insert creating a DataArray into the graph and then refer to those keys in the Dataset constructor.

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