home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 255701612 and user = 2443309 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • jhamman · 2 ✖

issue 1

  • TypeError: DataArray.name or Dataset key must be either a string or None for serialization to netCDF files · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
327599255 https://github.com/pydata/xarray/issues/1555#issuecomment-327599255 https://api.github.com/repos/pydata/xarray/issues/1555 MDEyOklzc3VlQ29tbWVudDMyNzU5OTI1NQ== jhamman 2443309 2017-09-06T20:11:00Z 2017-09-06T20:11:00Z MEMBER

At a minimum, we should make sure that the objects passed to save_mfdataset are in fact datasets.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  TypeError: DataArray.name or Dataset key must be either a string or None for serialization to netCDF files 255701612
327583527 https://github.com/pydata/xarray/issues/1555#issuecomment-327583527 https://api.github.com/repos/pydata/xarray/issues/1555 MDEyOklzc3VlQ29tbWVudDMyNzU4MzUyNw== jhamman 2443309 2017-09-06T19:06:54Z 2017-09-06T19:06:54Z MEMBER

@kuchaale - Thanks for the report. You are trying to save a list of DataArray objects using save_mfdataset, which does not currently support saving DataArrays to netCDF.

Changing your line:

Python foo = xr.DataArray(data, coords=[times, locs], dims=['time', 'space']) foo.name = 'foo' to Python foo = xr.DataArray(data, coords=[times, locs], dims=['time', 'space']).to_dataset(name='foo')

corrects issue.

We could add a save_mfdataarray function or just handle the type conversion in save_mfdataset if that would be useful.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  TypeError: DataArray.name or Dataset key must be either a string or None for serialization to netCDF files 255701612

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 751.288ms · About: xarray-datasette