home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 824927779

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/5208#issuecomment-824927779 https://api.github.com/repos/pydata/xarray/issues/5208 824927779 MDEyOklzc3VlQ29tbWVudDgyNDkyNzc3OQ== 2448579 2021-04-22T15:10:53Z 2021-04-22T15:10:53Z MEMBER

```

Creating a Dataset

ds = xr.Dataset( { "aa": (["time",], aa), }, coords={"time": (["time",], time), }, ) ```

This syntax recreates the DataArray aa. Since you don't provide attributes in (["time",], aa), the resulting DataArray has no attributes

Instead try ds = xr.Dataset({"aa": aa}) # works when aa is already a DataArray

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