home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "MEMBER" and issue = 394625579 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

  • dcherian 2

issue 1

  • open_mfdataset change the attributes of Coordinates · 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
450457809 https://github.com/pydata/xarray/issues/2636#issuecomment-450457809 https://api.github.com/repos/pydata/xarray/issues/2636 MDEyOklzc3VlQ29tbWVudDQ1MDQ1NzgwOQ== dcherian 2448579 2018-12-29T02:28:53Z 2018-12-29T02:28:53Z MEMBER

The values of your time variable are preserved but the units change. I wonder if we should consider this a round-tripping bug.

python attrs = {'units': 'hours since 2015-01-01'} ds_1 = xr.Dataset({'temperature': (['x', 'y', 'time'], temp)}, coords={'lon': (['x', 'y'], lon), 'lat': (['x', 'y'], lat), 'time': ('time', [100, 101, 102], attrs)}) print(ds_1.time.attrs) ds_1.to_netcdf('ds1.nc') file = xr.open_dataset('ds1.nc') print(file.time.attrs) file.close()

gives output OrderedDict([('units', 'hours since 2015-01-01')]) OrderedDict()

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  open_mfdataset change the attributes of Coordinates 394625579
450382495 https://github.com/pydata/xarray/issues/2636#issuecomment-450382495 https://api.github.com/repos/pydata/xarray/issues/2636 MDEyOklzc3VlQ29tbWVudDQ1MDM4MjQ5NQ== dcherian 2448579 2018-12-28T16:03:23Z 2018-12-28T16:03:23Z MEMBER

I have never tried this but try setting those units as encoding, not attrs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  open_mfdataset change the attributes of Coordinates 394625579

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 15.432ms · About: xarray-datasette